(function($){ 'use strict'; if(typeof _wpcf7=='undefined'||_wpcf7===null){ return; } _wpcf7=$.extend({ cached: 0 }, _wpcf7); $.fn.wpcf7InitForm=function(){ this.ajaxForm({ beforeSubmit: function(arr, $form, options){ $form.wpcf7ClearResponseOutput(); $form.find('[aria-invalid]').attr('aria-invalid', 'false'); $form.find('img.ajax-loader').css({ visibility: 'visible' }); return true; }, beforeSerialize: function($form, options){ $form.find('[placeholder].placeheld').each(function(i, n){ $(n).val(''); }); return true; }, data: { '_wpcf7_is_ajax_call': 1 }, dataType: 'json', success: $.wpcf7AjaxSuccess, error: function(xhr, status, error, $form){ var e=$('
').text(error.message); $form.after(e); }}); if(_wpcf7.cached){ this.wpcf7OnloadRefill(); } this.wpcf7ToggleSubmit(); this.find('.wpcf7-submit').wpcf7AjaxLoader(); this.find('.wpcf7-acceptance').click(function(){ $(this).closest('form').wpcf7ToggleSubmit(); }); this.find('.wpcf7-exclusive-checkbox').wpcf7ExclusiveCheckbox(); this.find('.wpcf7-list-item.has-free-text').wpcf7ToggleCheckboxFreetext(); this.find('[placeholder]').wpcf7Placeholder(); if(_wpcf7.jqueryUi&&! _wpcf7.supportHtml5.date){ this.find('input.wpcf7-date[type="date"]').each(function(){ $(this).datepicker({ dateFormat: 'yy-mm-dd', minDate: new Date($(this).attr('min')), maxDate: new Date($(this).attr('max')) }); }); } if(_wpcf7.jqueryUi&&! _wpcf7.supportHtml5.number){ this.find('input.wpcf7-number[type="number"]').each(function(){ $(this).spinner({ min: $(this).attr('min'), max: $(this).attr('max'), step: $(this).attr('step') }); }); } this.find('.wpcf7-character-count').wpcf7CharacterCount(); this.find('.wpcf7-validates-as-url').change(function(){ $(this).wpcf7NormalizeUrl(); }); this.find('.wpcf7-recaptcha').wpcf7Recaptcha(); }; $.wpcf7AjaxSuccess=function(data, status, xhr, $form){ if(! $.isPlainObject(data)||$.isEmptyObject(data)){ return; } var $responseOutput=$form.find('div.wpcf7-response-output'); $form.wpcf7ClearResponseOutput(); $form.find('.wpcf7-form-control').removeClass('wpcf7-not-valid'); $form.removeClass('invalid spam sent failed'); if(data.captcha){ $form.wpcf7RefillCaptcha(data.captcha); } if(data.quiz){ $form.wpcf7RefillQuiz(data.quiz); } if(data.invalids){ $.each(data.invalids, function(i, n){ $form.find(n.into).wpcf7NotValidTip(n.message); $form.find(n.into).find('.wpcf7-form-control').addClass('wpcf7-not-valid'); $form.find(n.into).find('[aria-invalid]').attr('aria-invalid', 'true'); }); $responseOutput.addClass('wpcf7-validation-errors'); $form.addClass('invalid'); $(data.into).trigger('wpcf7:invalid'); $(data.into).trigger('invalid.wpcf7'); }else if(1==data.spam){ $form.find('[name="g-recaptcha-response"]').each(function(){ if(''==$(this).val()){ var $recaptcha=$(this).closest('.wpcf7-form-control-wrap'); $recaptcha.wpcf7NotValidTip(_wpcf7.recaptcha.messages.empty); }}); $responseOutput.addClass('wpcf7-spam-blocked'); $form.addClass('spam'); $(data.into).trigger('wpcf7:spam'); $(data.into).trigger('spam.wpcf7'); }else if(1==data.mailSent){ $responseOutput.addClass('wpcf7-mail-sent-ok'); $form.addClass('sent'); if(data.onSentOk){ $.each(data.onSentOk, function(i, n){ eval(n) }); } $(data.into).trigger('wpcf7:mailsent'); $(data.into).trigger('mailsent.wpcf7'); }else{ $responseOutput.addClass('wpcf7-mail-sent-ng'); $form.addClass('failed'); $(data.into).trigger('wpcf7:mailfailed'); $(data.into).trigger('mailfailed.wpcf7'); } if(data.onSubmit){ $.each(data.onSubmit, function(i, n){ eval(n) }); } $(data.into).trigger('wpcf7:submit'); $(data.into).trigger('submit.wpcf7'); if(1==data.mailSent){ $form.resetForm(); } $form.find('[placeholder].placeheld').each(function(i, n){ $(n).val($(n).attr('placeholder')); }); $responseOutput.append(data.message).slideDown('fast'); $responseOutput.attr('role', 'alert'); $.wpcf7UpdateScreenReaderResponse($form, data); }; $.fn.wpcf7ExclusiveCheckbox=function(){ return this.find('input:checkbox').click(function(){ var name=$(this).attr('name'); $(this).closest('form').find('input:checkbox[name="' + name + '"]').not(this).prop('checked', false); }); }; $.fn.wpcf7Placeholder=function(){ if(_wpcf7.supportHtml5.placeholder){ return this; } return this.each(function(){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); $(this).focus(function(){ if($(this).hasClass('placeheld')) $(this).val('').removeClass('placeheld'); }); $(this).blur(function(){ if(''==$(this).val()){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); }}); }); }; $.fn.wpcf7AjaxLoader=function(){ return this.each(function(){ var loader=$('') .attr({ src: _wpcf7.loaderUrl, alt: _wpcf7.sending }) .css('visibility', 'hidden'); $(this).after(loader); }); }; $.fn.wpcf7ToggleSubmit=function(){ return this.each(function(){ var form=$(this); if(this.tagName.toLowerCase()!='form'){ form=$(this).find('form').first(); } if(form.hasClass('wpcf7-acceptance-as-validation')){ return; } var submit=form.find('input:submit'); if(! submit.length) return; var acceptances=form.find('input:checkbox.wpcf7-acceptance'); if(! acceptances.length) return; submit.removeAttr('disabled'); acceptances.each(function(i, n){ n=$(n); if(n.hasClass('wpcf7-invert')&&n.is(':checked') || ! n.hasClass('wpcf7-invert')&&! n.is(':checked')){ submit.attr('disabled', 'disabled'); }}); }); }; $.fn.wpcf7ToggleCheckboxFreetext=function(){ return this.each(function(){ var $wrap=$(this).closest('.wpcf7-form-control'); if($(this).find(':checkbox, :radio').is(':checked')){ $(this).find(':input.wpcf7-free-text').prop('disabled', false); }else{ $(this).find(':input.wpcf7-free-text').prop('disabled', true); } $wrap.find(':checkbox, :radio').change(function(){ var $cb=$('.has-free-text', $wrap).find(':checkbox, :radio'); var $freetext=$(':input.wpcf7-free-text', $wrap); if($cb.is(':checked')){ $freetext.prop('disabled', false).focus(); }else{ $freetext.prop('disabled', true); }}); }); }; $.fn.wpcf7CharacterCount=function(){ return this.each(function(){ var $count=$(this); var name=$count.attr('data-target-name'); var down=$count.hasClass('down'); var starting=parseInt($count.attr('data-starting-value'), 10); var maximum=parseInt($count.attr('data-maximum-value'), 10); var minimum=parseInt($count.attr('data-minimum-value'), 10); var updateCount=function($target){ var length=$target.val().length; var count=down ? starting - length:length; $count.attr('data-current-value', count); $count.text(count); if(maximum&&maximum < length){ $count.addClass('too-long'); }else{ $count.removeClass('too-long'); } if(minimum&&length < minimum){ $count.addClass('too-short'); }else{ $count.removeClass('too-short'); }}; $count.closest('form').find(':input[name="' + name + '"]').each(function(){ updateCount($(this)); $(this).keyup(function(){ updateCount($(this)); }); }); }); }; $.fn.wpcf7NormalizeUrl=function(){ return this.each(function(){ var val=$.trim($(this).val()); if(val&&! val.match(/^[a-z][a-z0-9.+-]*:/i)){ val=val.replace(/^\/+/, ''); val='http://' + val; } $(this).val(val); }); }; $.fn.wpcf7NotValidTip=function(message){ return this.each(function(){ var $into=$(this); $into.find('span.wpcf7-not-valid-tip').remove(); $into.append('' + message + ''); if($into.is('.use-floating-validation-tip *')){ $('.wpcf7-not-valid-tip', $into).mouseover(function(){ $(this).wpcf7FadeOut(); }); $(':input', $into).focus(function(){ $('.wpcf7-not-valid-tip', $into).not(':hidden').wpcf7FadeOut(); }); }}); }; $.fn.wpcf7FadeOut=function(){ return this.each(function(){ $(this).animate({ opacity: 0 }, 'fast', function(){ $(this).css({'z-index': -100}); }); }); }; $.fn.wpcf7OnloadRefill=function(){ return this.each(function(){ var url=$(this).attr('action'); if(0 < url.indexOf('#')){ url=url.substr(0, url.indexOf('#')); } var id=$(this).find('input[name="_wpcf7"]').val(); var unitTag=$(this).find('input[name="_wpcf7_unit_tag"]').val(); $.getJSON(url, { _wpcf7_is_ajax_call: 1, _wpcf7: id, _wpcf7_request_ver: $.now() }, function(data){ if(data&&data.captcha){ $('#' + unitTag).wpcf7RefillCaptcha(data.captcha); } if(data&&data.quiz){ $('#' + unitTag).wpcf7RefillQuiz(data.quiz); }} ); }); }; $.fn.wpcf7RefillCaptcha=function(captcha){ return this.each(function(){ var form=$(this); $.each(captcha, function(i, n){ form.find(':input[name="' + i + '"]').clearFields(); form.find('img.wpcf7-captcha-' + i).attr('src', n); var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n); form.find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[1]); }); }); }; $.fn.wpcf7RefillQuiz=function(quiz){ return this.each(function(){ var form=$(this); $.each(quiz, function(i, n){ form.find(':input[name="' + i + '"]').clearFields(); form.find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[0]); form.find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[1]); }); }); }; $.fn.wpcf7ClearResponseOutput=function(){ return this.each(function(){ $(this).find('div.wpcf7-response-output').hide().empty().removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked').removeAttr('role'); $(this).find('span.wpcf7-not-valid-tip').remove(); $(this).find('img.ajax-loader').css({ visibility: 'hidden' }); }); }; $.fn.wpcf7Recaptcha=function(){ return this.each(function(){ var events='wpcf7:spam wpcf7:mailsent wpcf7:mailfailed'; $(this).closest('div.wpcf7').on(events, function(e){ if(recaptchaWidgets&&grecaptcha){ $.each(recaptchaWidgets, function(index, value){ grecaptcha.reset(value); }); }}); }); }; $.wpcf7UpdateScreenReaderResponse=function($form, data){ $('.wpcf7 .screen-reader-response').html('').attr('role', ''); if(data.message){ var $response=$form.siblings('.screen-reader-response').first(); $response.append(data.message); if(data.invalids){ var $invalids=$(''); $.each(data.invalids, function(i, n){ if(n.idref){ var $li=$('
  • ').append($('').attr('href', '#' + n.idref).append(n.message)); }else{ var $li=$('
  • ').append(n.message); } $invalids.append($li); }); $response.append($invalids); } $response.attr('role', 'alert').focus(); }}; $.wpcf7SupportHtml5=function(){ var features={}; var input=document.createElement('input'); features.placeholder='placeholder' in input; var inputTypes=['email', 'url', 'tel', 'number', 'range', 'date']; $.each(inputTypes, function(index, value){ input.setAttribute('type', value); features[value]=input.type!=='text'; }); return features; }; $(function(){ _wpcf7.supportHtml5=$.wpcf7SupportHtml5(); $('div.wpcf7 > form').wpcf7InitForm(); }); })(jQuery); (function ($, undefined){ "use strict"; $(function (){ $.GoPricing={ Init:function (){ this.$wrap=$('.gw-go'); this.fixWidth(); this.InitAnim(); this.equalize=this.$wrap.data('equalize'); this.InitMediaElementPlayer(); this.InitGoogleMap(); this.isIE=document.documentMode!=undefined&&document.documentMode >5 ? document.documentMode:false; if(this.isIE){ this.$wrap.addClass('gw-go-ie'); if(this.isIE < 9) this.$wrap.addClass('gw-go-oldie'); }; if($.GoPricing!=undefined&&$.GoPricing.equalize){ this.EqualizeRows(); }; this.eventType=this.detectEvent(); this.timeout=[]; }, InitAnim: function(){ this.$wrap.each(function(i, obj){ $(obj).css('opacity', 1); var $cols=$(".gw-go-col-wrap[data-col-anim]", this); if($cols.length){ var tl=new TimelineLite({ paused: true, onStart: function(){ var tw=this.getChildren(), i=tw.length; while (i--) if(tw[i].vars.onUpdate) tw[i].vars.onUpdate(); }}); $cols.each(function(i, col){ var anim=$(col).data('col-anim')||{}; if(anim.trans){ anim.css.opacity /=100, anim.css.scaleX /=100, anim.css.scaleY /=100; tl.add(TweenLite.from(col, anim.trans.duration/1000, {css: anim.css, ease: anim.trans.ease}), anim.trans.delay/1000); } if(anim.count){ var $price=$('[data-id=price]', col), counter={ value:(anim.count.from||0) }, $amount=$price.find('[data-id=amount]'), price=$price.data('price')||0, currency=$price.data('currency')||{}, decimals=(price||'').toString().split('.')[1]||'', decCnt=decimals.length; if($price.data('trailing-zero')) decCnt=$price.data('decimal-no'); tl.add(TweenLite.to(counter, anim.count.duration/1000, { value: price, ease: anim.count.ease, onUpdate: function(){ var c=counter.value $amount.html(function(){ var parts=parseFloat(c).toFixed(decCnt).split('.'); parts[0]=parts[0].replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1"+(currency['thousand-sep']||' ')); parts[1]=parts[1] ?(( currency['decimal-sep']||'.') + parts[1]):''; return parts[0] + parts[1]; }); }, }), anim.count.delay/1000); }}); var $this=$(this).data('tl', tl); $this.tablespy({offset: $this.data('scroll-offset')}); TweenLite.set(this, {perspective: '1000px'}); }}); }, showTooltip:function ($elem, content, top){ if($elem===undefined) return; var $rowTooltip=$elem.find('.gw-go-tooltip-content'), rowTooltipContent=$rowTooltip.length ? $rowTooltip.prop('outerHTML'):'', $colWrap=$elem.closest('.gw-go-col-wrap'), $col=$colWrap.find('.gw-go-col'), $tooltip=$col.find('.gw-go-tooltip'), colIndex=$colWrap.data('col-index'), rIndex=$elem.data('row-index'); if(!$tooltip.length) $tooltip=$('
    ').appendTo($col); if($tooltip.data('index')!=rIndex){ $tooltip.removeClass('gw-go-tooltip-visible'); }else{ clearTimeout($.GoPricing.timeout[colIndex]); } if(rowTooltipContent!=''){ $tooltip.html(rowTooltipContent).data('index', rIndex) var corr=$col.position().top; setTimeout(function(){ $tooltip.addClass('gw-go-tooltip-visible').css('top', $elem.find('.gw-go-body-cell').offset().top - $col.closest('.gw-go-col-wrap').offset().top - $tooltip.outerHeight() - 16 - corr) }, 10); }}, hideTooltip:function ($elem){ if($elem===undefined) return; if($elem.hasClass('gw-go-tooltip')){ $elem.removeClass('gw-go-tooltip-visible'); }else{ var $colWrap=$elem.closest('.gw-go-col-wrap'), $col=$colWrap.find('.gw-go-col'), $tooltip=$col.find('.gw-go-tooltip'), colIndex=$colWrap.data('col-index'); $.GoPricing.timeout[colIndex]=setTimeout(function(){ $tooltip.removeClass('gw-go-tooltip-visible'); }, 10); }}, InitMediaElementPlayer:function (){ if(jQuery().mediaelementplayer&&$.GoPricing.$wrap.find('audio, video').length){ $.GoPricing.$wrap.find('audio, video').mediaelementplayer({ audioWidth: '100%', videoWidth: '100%' }); };}, InitGoogleMap:function (){ if(jQuery().goMap&&$.GoPricing.$wrap.find('.gw-go-gmap').length){ $.GoPricing.$wrap.find('.gw-go-gmap').each(function(index){ var $this=$(this); $this.goMap($this.data('map')); }); };}, loadImages:function($pricingTable){ if(!$pricingTable.data('images')||$pricingTable.data('imagesLoaded')) return; var images=$pricingTable.data('images'), ready=true; for (var x=0; x < images.length; x++){ var image=images[x]; if(image.el.naturalWidth==0) ready=false; } if(ready){ $pricingTable.data('imagesLoaded', true) this.EqualizeRows(); return; } setTimeout($.proxy(function(){ this.loadImages($pricingTable); }, this), 100); }, fixWidth:function(){ if('WebkitAppearance' in document.documentElement.style===false||window.StyleMedia) return; for (var x=0; x < $.GoPricing.$wrap.length; x++){ var $pricingTable=$.GoPricing.$wrap.eq(x), $cols=$pricingTable.find('.gw-go-col-wrap'); if($pricingTable.is(':hidden')||$pricingTable.offset().top>parseInt($(document).scrollTop()+window.innerHeight+500||$pricingTable.data('fix-width')===true)||$cols.length < 2) continue; for (var i=0; i < $cols.length; i++){ var $col=$cols.eq(i), fixedMaxWidth=parseInt($pricingTable.data('mw')), maxWidth=Math.floor(parseFloat(window.getComputedStyle($col[0]).width)); if(!fixedMaxWidth||maxWidth < fixedMaxWidth){ $cols.css('max-width', 'none'); $cols.css('max-width', Math.floor(parseFloat(window.getComputedStyle($col[0]).width))); }} $pricingTable.data('fix-width', true); }}, EqualizeRows:function (){ for (var x=0; x < $.GoPricing.$wrap.length; x++){ if($.GoPricing.$wrap.eq(x).is(':hidden')||$.GoPricing.$wrap.eq(x).offset().top>parseInt($(document).scrollTop()+window.innerHeight+500)||$.GoPricing.$wrap.eq(x).data('eq-ready')===true) continue; var $pricingTable=$.GoPricing.$wrap.eq(x), $colWrap=$pricingTable.find('.gw-go-col-wrap:visible'), colCnt=$colWrap.length, equalizeCnt=colCnt, views=$pricingTable.data('views')!==undefined ? $pricingTable.data('views'):{}; if(!$pricingTable.data('images')&&!$pricingTable.data('imagesLoaded')){ var images=[]; if($pricingTable.data('equalize').body!=undefined){ $pricingTable.find('.gw-go-body li .gw-go-body-cell:visible img').each(function(index, el){ images.push({'ready':false, 'el':el }) });} if($pricingTable.data('equalize').footer!=undefined){ $pricingTable.find('.gw-go-footer .gw-go-footer-row-inner:visible img').each(function(index, el){ images.push({'ready':false, 'el':el }) });} if($pricingTable.data('equalize').column!=undefined){ $pricingTable.find('.gw-go-header img').each(function(index, el){ images.push({'ready':false, 'el':el }) });} if(images.length) $pricingTable.data('images', images); } if($pricingTable.data('images')&&!$pricingTable.data('imagesLoaded')){ this.loadImages($pricingTable); continue; } for (var key in views){ var mqSizes=[], mq=''; if(views[key].min!==undefined&&views[key].min!=='') mqSizes.push('(min-width:'+views[key].min+'px)'); if(views[key].max!==undefined&&views[key].max!=='') mqSizes.push('(max-width:'+views[key].max+'px)'); mq=mqSizes.join(' and '); if(mq!='') if(window.matchMedia&&window.matchMedia(mq).matches){ equalizeCnt=views[key].cols!==undefined&&views[key].cols!==''&&views[key].cols <=colCnt ? views[key].cols:colCnt; }} if(equalizeCnt==1){ $pricingTable.find('.gw-go-body li .gw-go-body-cell').css('height', 'auto'); $pricingTable.find('.gw-go-col-wrap').css('height', 'auto'); $pricingTable.find('.gw-go-footer').css('height', 'auto'); continue; } for (var z=0; z=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){ var $currentCol=$colWrap.eq(i), $row=$currentCol.find('.gw-go-body li .gw-go-body-cell:visible'); for (var rIndex=0; rIndex < $row.length; rIndex++){ var $currentRow=$row.eq(rIndex); $currentRow.css('height', 'auto'); if(typeof rowHeights[rIndex]!=='undefined'){ if($currentRow.height() > rowHeights[rIndex]){ rowHeights[rIndex]=$currentRow.height(); }}else{ rowHeights[rIndex]=$currentRow.height(); }} }} for (var i=0; i < colCnt; i++){ var $currentCol=$colWrap.eq(i), $row=$currentCol.find('.gw-go-body li .gw-go-body-cell:visible'); if(i >=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){ for (var rIndex=0; rIndex < $row.length; rIndex++){ var $currentRow=$row.eq(rIndex); $currentRow.css('height', rowHeights[rIndex]); }} }} if($pricingTable.data('equalize').footer!=undefined){ for (var i=0; i < colCnt; i++){ if(i >=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){ var $currentCol=$colWrap.eq(i), $row=$currentCol.find('.gw-go-footer .gw-go-footer-row-inner:visible'); for (var rIndex=0; rIndex < $row.length; rIndex++){ var $currentRow=$row.eq(rIndex); $currentRow.css('height', 'auto'); if(typeof footerHeights[rIndex]!=='undefined'){ if($currentRow.height() > footerHeights[rIndex]){ footerHeights[rIndex]=$currentRow.height(); }}else{ footerHeights[rIndex]=$currentRow.height(); }} }} for (var i=0; i < colCnt; i++){ var $currentCol=$colWrap.eq(i), $row=$currentCol.find('.gw-go-footer .gw-go-footer-row-inner:visible'); if(i >=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){ for (var rIndex=0; rIndex < $row.length; rIndex++){ var $currentRow=$row.eq(rIndex); $currentRow.css('height', footerHeights[rIndex]); }} }} if($pricingTable.data('equalize').column!=undefined){ for (var i=0; i < colCnt; i++){ var $currentCol=$colWrap.eq(i); if(i >=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){ $currentCol.css('height', 'auto'); if(typeof colHeights[z]!=='undefined'){ if($currentCol.outerHeight(true) > colHeights[z]){ colHeights[z]=$currentCol.outerHeight(false); }}else{ colHeights[z]=$currentCol.outerHeight(false); }} } for (var i=0; i < colCnt; i++){ var $currentCol=$colWrap.eq(i); if(i >=(z*equalizeCnt)&&i <=(z*equalizeCnt)+equalizeCnt-1){ $currentCol.css('height', colHeights[z]); }} }} }}, detectEvent:function(){ var eventType='mouseenter mouseleave'; if('ontouchstart' in window){ eventType='touchstart'; }else if(window.navigator.pointerEnabled&&navigator.msMaxTouchPoints){ eventType="pointerdown"; }else if(window.navigator.msPointerEnabled&&navigator.msMaxTouchPoints){ eventType="MSPointerDown"; } return eventType; }}; $.GoPricing.Init(); $(window).on('scroll', function(){ $.GoPricing.EqualizeRows(); }); $.GoPricing.$wrap.delegate('span.gw-go-btn', 'click', function(){ var $this=$(this); if($this.find('form').length){ $this.find('form').submit(); };}); $.GoPricing.$wrap.on('mouseenter mouseleave', '.gw-go-tooltip', function(e){ var $this=$(this), $colWrap=$this.closest('.gw-go-col-wrap'), colIndex=$colWrap.data('col-index'); if(e.type=='mouseenter'){ clearTimeout($.GoPricing.timeout[colIndex]); }else{ $.GoPricing.timeout[colIndex]=setTimeout(function(){ $.GoPricing.hideTooltip($this); }, 10); }}); $.GoPricing.$wrap.on('mouseenter mouseleave', 'ul.gw-go-body > li', function(e){ var $this=$(this); if(e.type=='mouseenter'){ $.GoPricing.showTooltip($this); }else{ $.GoPricing.hideTooltip($this); }}); $('body').on($.GoPricing.eventType, '.gw-go-col-wrap', function(e){ var $this=$(this); if(e.type=='mouseenter'){ $this.addClass('gw-go-curr'); }else if(e.type=='mouseleave'){ $this.removeClass('gw-go-curr'); } if(e.type=='mouseenter'&&!$this.hasClass('gw-go-disable-hover')){ $this.addClass('gw-go-hover').siblings(':not(.gw-go-disable-hover)').removeClass('gw-go-hover'); $this.closest('.gw-go').addClass('gw-go-hover'); }else if(e.type=='mouseleave'&&!$this.hasClass('gw-go-disable-hover')){ $this.removeClass('gw-go-hover'); $this.closest('.gw-go').find('[data-current="1"]:not(.gw-go-disable-hover)').addClass('gw-go-hover'); $this.closest('.gw-go').removeClass('gw-go-hover') }else if(!$this.hasClass('gw-go-disable-hover')){ $this.closest('.gw-go').addClass('gw-go-hover') $this.addClass('gw-go-hover').siblings(':not(.gw-go-disable-hover)').removeClass('gw-go-hover'); };}); if(typeof jQuery.goMap!=='undefined'&&$.GoPricing.$wrap.find('.gw-go-gmap').length){ var GoPricing_MapResize=false; $(window).on('resize', function(e){ if(GoPricing_MapResize){ clearTimeout(GoPricing_MapResize); } GoPricing_MapResize=setTimeout(function(){ $.GoPricing.$wrap.find('.gw-go-gmap').each(function(index, element){ }); }, 400); }); }; $(window).on('resize load', function(e){ for (var x=0; x < $.GoPricing.$wrap.length; x++){ $.GoPricing.$wrap.eq(x).data('eq-ready', false); $.GoPricing.$wrap.eq(x).data('fix-width', false); } $.GoPricing.fixWidth(); $.GoPricing.EqualizeRows(); }); $(window).on("scrollEnter scrollLeave", function(e, spy){ var $target=$(e.target); var repeat=$target.data("anim-repeat")||Infinity; if(e.type=="scrollEnter"){ if(spy.enters <=repeat) $target.data("tl").play(); }else{ if(spy.enters < repeat) $target.data("tl").stop().seek(0); }}); }); }(jQuery)); ;(function($, window, undefined){ var $elems=$(); var $cont=$(window) .on("resize.tablespy", onResize) .on("load.tablespy", onResize) .on("scroll.tablespy load.tablespy", onScroll); function onScroll(){ if(!$elems.length) return; var height=$cont.height(); var y=$cont.scrollTop(); $elems.each(function(){ var $elem=$(this); var o=$elem.data('tablespy'); var offset=o.rowHeight * o.offset / 100; if(Math.floor((o.rowHeight+height)/2) < offset) offset=Math.floor((o.rowHeight+height)/2)-20; if(height + y-offset >=o.min&&y+offset <=o.max){ if(!o.inside){ o.inside=true; o.enters++; $elem.trigger("scrollEnter", {scrollTop: y, enters: o.enters, leaves: o.leaves}); } $elem.trigger("scrollTick", {scrollTop: y, enters: o.enters, leaves: o.leaves}); } if(o.inside&&!(height + y >=o.min&&y <=o.max)){ o.inside=false; o.leaves++; $elem.trigger("scrollLeave", {scrollTop: y, enters: o.enters, leaves: o.leaves}); }}); } function onResize(){ $elems.each(function(){ var $elem=$(this); var o=$elem.data("tablespy"); o.min=$elem.offset().top; o.max=$elem.outerHeight() + o.min; o.rowHeight=$elem.children(":visible:first").outerHeight(); }); } $.fn.tablespy=function(options){ var defaults={ offset: 0, enters: 0, leaves: 0, inside: false }; return this.each(function(){ var $elem=$(this); var top=$elem.offset().top; $elem.data("tablespy", $.extend({ min: top, max: top + $elem.outerHeight(), rowHeight: $elem.children(":visible:first").outerHeight() }, defaults, options)); $elems.push(this); }); };})(jQuery, window); !function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document); function vc_js(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_googleplus(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_google_fonts(),vc_gridBehaviour(),vc_rowBehaviour(),vc_googleMapsPointer(),vc_ttaActivation(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}function getSizeName(){var screen_w=jQuery(window).width();return screen_w>1170?"desktop_wide":screen_w>960&&1169>screen_w?"desktop":screen_w>768&&959>screen_w?"tablet":screen_w>300&&767>screen_w?"mobile":300>screen_w?"mobile_portrait":""}function loadScript(url,$obj,callback){var script=document.createElement("script");script.type="text/javascript",script.readyState&&(script.onreadystatechange=function(){("loaded"===script.readyState||"complete"===script.readyState)&&(script.onreadystatechange=null,callback())}),script.src=url,$obj.get(0).appendChild(script)}function vc_ttaActivation(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}function vc_accordionActivate(event,ui){if(ui.newPanel.length&&ui.newHeader.length){var $pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]');"undefined"!=typeof jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}}function initVideoBackgrounds(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}function vc_initVideoBackgrounds(){jQuery(".vc_row").each(function(){var youtubeUrl,youtubeId,$row=jQuery(this);$row.data("vcVideoBg")?(youtubeUrl=$row.data("vcVideoBg"),youtubeId=vcExtractYoutubeId(youtubeUrl),youtubeId&&($row.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($row,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$row.has($grid).length&&vcResizeVideoBackground($row)})):$row.find(".vc_video-bg").remove()})}function insertYoutubeVideoAsBackground($element,youtubeId,counter){if("undefined"==typeof YT.Player)return counter="undefined"==typeof counter?0:counter,counter>100?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('
    ').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("resize",function(){vcResizeVideoBackground($element)})}function vcResizeVideoBackground($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight(),ratio1=16,ratio2=9;ratio1/ratio2>containerW/containerH?(iframeW=containerH*(ratio1/ratio2),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px",iframeW+="px",iframeH+="px"):(iframeW=containerW,iframeH=containerW*(ratio2/ratio1),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px",iframeW+="px",iframeH+="px"),$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}function vcExtractYoutubeId(url){if("undefined"==typeof url)return!1;var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id?id[1]:!1}function vc_googleMapsPointer(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.click(function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.mouseleave(function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;iparseInt(ver[1]);$call.each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),tabs_array=[];if($tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},beforeActivate:function(event,ui){1!==ui.newPanel.index()&&ui.newPanel.find(".vc_pie_chart:not(.vc_ready)")},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}}),interval&&interval>0)try{$tabs.tabs("rotate",1e3*interval)}catch(e){window.console&&window.console.log&&console.log(e)}jQuery(this).find(".wpb_tab").each(function(){tabs_array.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").click(function(e){return e.preventDefault(),old_version?$tabs.tabs("select",jQuery("a",this).attr("href")):$tabs.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").click(function(e){if(e.preventDefault(),old_version){var index=$tabs.tabs("option","selected");jQuery(this).parent().hasClass("wpb_next_slide")?index++:index--,0>index?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)}else{var index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length;index=jQuery(this).parent().hasClass("wpb_next_slide")?index+1>=length?0:index+1:0>index-1?length-1:index-1,$tabs.tabs("option","active",index)}})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,$this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){"undefined"!=typeof jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}}),!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:"undefined"==typeof layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){var $carousel=$parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel");$carousel.each(function(){var $this=jQuery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0);var carousel_speed=(getColumnsCount(jQuery(this)),500);jQuery(this).hasClass("columns_count_1")&&(carousel_speed=900);var carousele_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).resize(function(){var before_resize=screen_size;screen_size=getSizeName(),before_resize!=screen_size&&window.setTimeout("location.reload()",20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderSpeed=800,sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:sliderSpeed,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})}else this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){var url=location.href,hashtag=url.indexOf("#!prettyPhoto")?!0:!1;hashtag&&(location.hash="")},social_tools:""})}catch(err){window.console&&window.console.log&&console.log(err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var $el_full=$el.next(".vc_row-full-width");if($el_full.length||($el_full=$el.parent().next(".vc_row-full-width")),$el_full.length){var el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width();if($el.css({position:"relative",left:offset,"box-sizing":"border-box",width:$(window).width()}),!$el.data("vcStretchContent")){var padding=-1*offset;0>padding&&(padding=0);var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;0>paddingRight&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})}$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden")}}),$(document).trigger("vc-full-width-row",$elements)}function parallaxRow(){var vcSkrollrOptions,callSkrollInit=!1;return window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSpeed,skrollrSize,skrollrStart,skrollrEnd,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),$parallaxElement=$("
    ").addClass("vc_parallax-inner").appendTo($(this)),$parallaxElement.height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),youtubeId=vcExtractYoutubeId(parallaxImage),youtubeId?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):"undefined"!=typeof parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrSpeed=skrollrSize-100,skrollrStart=-skrollrSpeed,skrollrEnd=0,$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: "+skrollrEnd+"%;")}),callSkrollInit&&window.skrollr?(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),window.vcParallaxSkroll):!1}function fullHeightRow(){var $element=$(".vc_row-o-full-height:first");if($element.length){var $window,windowHeight,offsetTop,fullHeight;$window=$(window),windowHeight=$window.height(),offsetTop=$element.offset().top,windowHeight>offsetTop&&(fullHeight=100-offsetTop/(windowHeight/100),$element.css("min-height",fullHeight+"vh"))}$(document).trigger("vc-full-height-row",$element)}function fixIeFlexbox(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");(msie>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('
    ')})}var $=window.jQuery;$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),fixIeFlexbox(),vc_initVideoBackgrounds(),parallaxRow()}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var $ui_panel,$google_maps,panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');if(vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),$ui_panel=panel.find(".isotope, .wpb_image_grid_ul"),$google_maps=panel.find(".wpb_gmaps_widget"),0<$ui_panel.length&&$ui_panel.isotope("layout"),$google_maps.length&&!$google_maps.is(".map_ready")){var $frame=$google_maps.find("iframe");$frame.attr("src",$frame.attr("src")),$google_maps.addClass("map_ready")}panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.vc_googleMapsPointer,jQuery(document).ready(function($){window.vc_js()}); (function($){ jQuery(document).ready(function(){ function version_compare(strVersionA, strVersionB){ var arrVersionA=strVersionA.split('.'); var arrVersionB=strVersionB.split('.'); var intVersionA=(100000000 * parseInt(arrVersionA[0])) + (1000000 * parseInt(arrVersionA[1])) + (10000 * parseInt(arrVersionA[2])); var intVersionB=(100000000 * parseInt(arrVersionB[0])) + (1000000 * parseInt(arrVersionB[1])) + (10000 * parseInt(arrVersionB[2])); if(intVersionA > intVersionB){ return 1; }else if(intVersionA < intVersionB){ return -1; }else{ return 0; } return false; } if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ $('html').addClass('ult-remove-fixed-background'); } jQuery(window).scroll(function(){ vc_viewport_video(); }); jQuery(window).load(function(){ vc_viewport_video(); }); function vc_viewport_video(){ if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) return false; jQuery('.enable-on-viewport').each(function(index, element){ var is_on_viewport=jQuery(this).isVdoOnScreen(); if(jQuery(this).hasClass('hosted-video')&&(!jQuery(this).hasClass('override-controls'))){ if(is_on_viewport){ jQuery(this)[0].play(); jQuery(this).parent().parent().parent().find('.video-controls').attr('data-action','play'); jQuery(this).parent().parent().parent().find('.video-controls').html(''); }else{ jQuery(this)[0].pause(); jQuery(this).parent().parent().parent().find('.video-controls').attr('data-action','pause'); jQuery(this).parent().parent().parent().find('.video-controls').html(''); }} }); } function ultHexToRgb(hex){ var shorthandRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i; hex=hex.replace(shorthandRegex, function(m, r, g, b){ return r + r + g + g + b + b; }); var result=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); return result ? { r: parseInt(result[1], 16), g: parseInt(result[2], 16), b: parseInt(result[3], 16) }:null; } function ult_vc_seperators(selector, parent){ var seperator=selector.data('seperator'); var seperator_type=selector.data('seperator-type'); var seperator_shape_size=selector.data('seperator-shape-size'); var seperator_background_color=selector.data('seperator-background-color'); var seperator_border=selector.data('seperator-border'); var seperator_border_color=selector.data('seperator-border-color'); var seperator_border_width=selector.data('seperator-border-width'); var seperator_svg_height=selector.data('seperator-svg-height'); var seperator_full_width=selector.data('seperator-full-width'); var seperator_position=selector.data('seperator-position'); if(typeof seperator_position=='undefined'||seperator_position=='') seperator_position='top_seperator'; var icon=selector.data('icon'); if(typeof icon=='undefined') icon=''; else icon='
    '+icon+'
    '; var seperator_css_main=seperator_class=seperator_border_css=seperator_border_line_css=seperator_css=''; if(typeof seperator!='undefined'&&seperator.toString()=='true'){ var css=shape_css=svg=inner_html=seperator_css=shape_css=''; var is_svg=false; var uniqid=Math.floor(Math.random()*9999999999999); var uniqclass='uvc-seperator-'+uniqid; if(typeof seperator_shape_size=='undefined'||seperator_shape_size==''||seperator_shape_size=='undefined') seperator_shape_size=0; seperator_shape_size=parseInt(seperator_shape_size); var half_shape=seperator_shape_size/2; var half_border=0; if(seperator_type=='triangle_seperator') seperator_class='ult-trinalge-seperator'; else if(seperator_type=='circle_seperator') seperator_class='ult-circle-seperator'; else if(seperator_type=='diagonal_seperator') seperator_class='ult-double-diagonal'; else if(seperator_type=='triangle_svg_seperator'){ seperator_class='ult-svg-triangle'; svg=''; is_svg=true; } else if(seperator_type=='circle_svg_seperator'){ seperator_class='ult-svg-circle'; svg=''; is_svg=true; } else if(seperator_type=='xlarge_triangle_seperator'){ seperator_class='ult-xlarge-triangle'; svg=''; is_svg=true; } else if(seperator_type=='xlarge_triangle_left_seperator'){ seperator_class='ult-xlarge-triangle-left'; svg=''; is_svg=true; } else if(seperator_type=='xlarge_triangle_right_seperator'){ seperator_class='ult-xlarge-triangle-right'; svg=''; is_svg=true; } else if(seperator_type=='xlarge_circle_seperator'){ seperator_class='ult-xlarge-circle'; svg=''; is_svg=true; } else if(seperator_type=='curve_up_seperator'){ seperator_class='ult-curve-up-seperator'; svg=''; is_svg=true; } else if(seperator_type=='curve_down_seperator'){ seperator_class='ult-curve-down-seperator'; svg=''; is_svg=true; } else if(seperator_type=='tilt_left_seperator'){ seperator_class='ult-tilt-left-seperator'; svg=''; is_svg=true; } else if(seperator_type=='tilt_right_seperator'){ seperator_class='ult-tilt-right-seperator'; svg=''; is_svg=true; } else if(seperator_type=='waves_seperator'){ seperator_class='ult-wave-seperator'; svg=''; is_svg=true; } else if(seperator_type=='clouds_seperator'){ seperator_class='ult-cloud-seperator'; svg=''; is_svg=true; } else if(seperator_type=='multi_triangle_seperator'){ seperator_class='ult-multi-trianle'; var rgb=ultHexToRgb(seperator_background_color); svg='\ \ \ \ \ \ \ \ \ '; is_svg=true; } else if(seperator_type=='round_split_seperator'){ var temp_css=temp_border_before=temp_border_after=temp_border_line=''; temp_padding=0; seperator_class='ult-rounded-split-seperator-wrapper'; var row_height=jQuery(selector).outerHeight(); if(seperator_shape_size!=0){ var prev_padding=parseInt(jQuery(selector).css('padding-bottom')); jQuery(selector).css({'padding-bottom':seperator_shape_size+'px'}); if(prev_padding==0) temp_padding=seperator_shape_size; } if(seperator_position=='top_seperator'){ var eclass='top-split-seperator'; var etop='0px'; var ebottom='auto'; var border_radius_before='border-radius: 0 0 '+seperator_shape_size+'px 0 !important;'; var border_radius_after='border-radius: 0 0 0 '+seperator_shape_size+'px !important;'; } else if(seperator_position=='bottom_seperator'){ var eclass='bottom-split-seperator'; var etop='auto'; var ebottom='0px'; var border_radius_before='border-radius: 0 '+seperator_shape_size+'px 0 0 !important;'; var border_radius_after='border-radius: '+seperator_shape_size+'px 0 0 0 !important;'; }else{ var eclass='top-bottom-split-seperator'; var etop_top='0px'; var ebottom_top='auto'; var etop_bottom='auto'; var ebottom_bottom='0px'; var border_radius_before_top='border-radius: 0 0 '+seperator_shape_size+'px 0 !important;'; var border_radius_after_top='border-radius: 0 0 0 '+seperator_shape_size+'px !important;'; var border_radius_before_bottom='border-radius: 0 '+seperator_shape_size+'px 0 0 !important;'; var border_radius_after_bottom='border-radius: '+seperator_shape_size+'px 0 0 0 !important;'; } inner_html='
    '; if(seperator_border!='none'){ temp_border_line=seperator_border_width+'px '+seperator_border+' '+seperator_border_color; temp_border_before='border-top: '+temp_border_line+'; border-right: '+temp_border_line+';'; temp_border_after='border-top: '+temp_border_line+'; border-left: '+temp_border_line+';'; } if(seperator_position=='top_seperator'||seperator_position=='bottom_seperator'){ temp_css=''; jQuery('head').append(temp_css); }else{ temp_css=''; temp_css_bottom=''; jQuery('head').append(temp_css+temp_css_bottom); }} else seperator_class='ult-no-shape-seperator'; if(typeof seperator_border_width!='undefined'&&seperator_border_width!=''&&seperator_border_width!=0){ half_border=parseInt(seperator_border_width); } shape_css='content: "";width:'+seperator_shape_size+'px; height:'+seperator_shape_size+'px; bottom: -'+(half_shape+half_border)+'px;'; if(seperator_background_color!='') shape_css +='background-color:'+seperator_background_color+';'; if(seperator_border!='none'&&seperator_class!='ult-rounded-split-seperator-wrapper'&&is_svg==false){ seperator_border_line_css=seperator_border_width+'px '+seperator_border+' '+seperator_border_color; shape_css +='border-bottom:'+seperator_border_line_css+'; border-right:'+seperator_border_line_css+';'; seperator_css +='border-bottom:'+seperator_border_line_css+';'; seperator_css_main='bottom:'+seperator_border_width+'px !important'; } if(seperator_class!='ult-no-shape-seperator'&&seperator_class!='ult-rounded-split-seperator-wrapper'&&is_svg==false){ var css=''; jQuery('head').append(css); } if(is_svg==true){ inner_html=svg; } if(seperator_position=='top_bottom_seperator'){ var seperator_html='
    '+inner_html+'
    '+icon+'
    '; seperator_html +='
    '+inner_html+'
    '+icon+'
    '; }else{ var seperator_html='
    '+inner_html+'
    '+icon+'
    '; } parent.prepend(seperator_html); seperator_css=''; if(seperator_css_main!=''){ seperator_css_main=''; seperator_css +=seperator_css_main; } if(icon!=''){ var t=seperator_svg_height/2; if(seperator_type=='none_seperator'||seperator_type=='circle_svg_seperator'||seperator_type=='triangle_svg_seperator') seperator_css +=''; else { seperator_css +=''; }} if(is_svg==true){ jQuery('.'+uniqclass).find('svg').css('height',seperator_svg_height); setTimeout(function(){ if(seperator_type=='multi_triangle_seperator'){ jQuery('.ult-multi-trianle').each(function(i,mt){ var svg_height=$(mt).find('svg').height(); if($(mt).hasClass('top_seperator')){ } else if($(mt).hasClass('bottom_seperator')){ $(mt).css('bottom',(svg_height-1)); }}); }},300); } jQuery('head').append(seperator_css); } } jQuery.fn.isVdoOnScreen=function(){ var win=jQuery(window); var viewport={ top:win.scrollTop(), left:win.scrollLeft() }; viewport.right=viewport.left + win.width(); viewport.bottom=viewport.top + win.height()-200; var bounds=this.parent().offset(); bounds.right=bounds.left + this.parent().outerWidth(); bounds.bottom=bounds.top + this.parent().outerHeight()-300; return (!(viewport.right < bounds.left||viewport.left > bounds.right||viewport.bottom < bounds.top||viewport.top > bounds.bottom)); }; jQuery.fn.ultimate_video_bg=function(option){ jQuery(this).each(function(){ var selector=jQuery(this); var vdo=selector.data('ultimate-video'); var vdo2=selector.data('ultimate-video2'); var muted=selector.data('ultimate-video-muted'); var loop=selector.data('ultimate-video-loop'); var autoplay=selector.data('ultimate-video-autoplay'); var poster=selector.data('ultimate-video-poster'); var ride=selector.data('bg-override'); var start=selector.data('start-time'); var stop=selector.data('stop-time'); var anim_style=selector.data('upb-bg-animation'); var overlay=selector.data('overlay'); var overlay_color=selector.data('overlay-color'); var overlay_pattern=selector.data('overlay-pattern'); var overlay_pattern_opacity=selector.data('overlay-pattern-opacity'); var overlay_pattern_size=selector.data('overlay-pattern-size'); var overlay_pattern_attachment=selector.data('overlay-pattern-attachment'); var viewport_vdo=selector.data('viewport-video'); var controls=selector.data('controls'); var controls_color=selector.data('controls-color'); var fadeout=selector.data('fadeout'); var fadeout_percentage=selector.data('fadeout-percentage'); var parallax_content=selector.data('parallax-content'); var parallax_content_sense=selector.data('parallax-content-sense'); var disble_mobile=selector.data('row-effect-mobile-disable'); var hide_row=selector.data('hide-row'); var rtl=selector.data('rtl'); var video_fixer=selector.data('video_fixer'); var multi_color_overlay=''; var multi_color_overlay_opacity=''; var vc_row_class=selector.data('custom-vc-row'); var vc=selector.data('vc'); var theme_support=selector.data('theme-support'); var is_vc_4_4=selector.data('is_old_vc'); if(typeof vc_row_class==='undefined'||vc_row_class==='') vc_row_class='wpb_row'; if(typeof vc==='undefined') vc=0; if(typeof is_vc_4_4==='undefined') is_vc_4_4=false; if(typeof theme_support==='undefined') theme_support='disable'; if(selector.data('multi-color-overlay')){ multi_color_overlay=selector.data('multi-color-overlay'); multi_color_overlay_opacity=selector.data('multi-color-overlay-opacity'); } var overlay_html=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css=''; if(typeof overlay!='undefined'&&overlay.toString()==='true'){ if(overlay_pattern!=''){ if(overlay_pattern_size!='') overlay_pattern_size='background-size:'+overlay_pattern_size+'px;'; if(typeof overlay_pattern_attachment!='undefined'&&overlay_pattern_attachment!='') overlay_pattern_attachment_css='background-attachment:'+overlay_pattern_attachment+';'; overlay_pattern_html='
    '; } if(overlay_color!='') overlay_color_html='
    '; if(multi_color_overlay!='') overlay_multi_color_html='
    '; overlay_html=overlay_color_html+overlay_pattern_html+overlay_multi_color_html; } if(stop!=0){ stop=stop; }else{ stop=''; } if(is_vc_4_4==true||theme_support=='enable'){ if(selector.prev().is('p')||selector.prev().is('style')) var parent=selector.prev().prev(); else var parent=selector.prev(); }else{ var parent=selector.prevAll('.'+vc_row_class+':first'); } parent.css('position','relative'); var current_row_classes=parent.attr('class'); var temp_selector=selector; selector=parent; var resizee=function(){ var w,h,ancenstor,al='',bl=''; ancenstor=selector; resize_selector=ancenstor.find('.upb_video-bg'); if(ride=='full'){ ancenstor=jQuery('body'); } if(ride=='ex-full'){ ancenstor=jQuery('html'); } if(! isNaN(ride)){ for(var i=0;i'; } if(ride=="browser_size"){ selector.wrapInner('
    '); selector.find('.upb_video-text-wrapper').find('.upb_video-text').addClass(current_row_classes); } if(parallax_content=='parallax_content_value'){ selector.addClass('vc-row-translate'); selector.attr('data-parallax-content-sense', parallax_content_sense); selector.wrapInner('
    '); var ptop=selector.css('padding-top'); var pbottom=selector.css('padding-bottom'); selector.find('.vc-row-translate-wrapper').css({'padding-top':ptop, 'padding-bottom':pbottom}); selector[0].style.setProperty('padding-top', '0px', 'important'); selector[0].style.setProperty('padding-bottom', '0px', 'important'); } var fixer_class=''; if(video_fixer.toString()=='true') fixer_class='uvc-video-fixer'; if(option=='youtube'||option=='vimeo'){ selector.prepend('
    '+overlay_html+'
    '); }else{ selector.prepend('
    '+control_html+overlay_html+'
    '); } ult_vc_seperators(temp_selector, selector); temp_selector.remove(); if(option=='youtube'){ vdo=vdo.substring((vdo.indexOf('watch?v='))+8,(vdo.indexOf('watch?v='))+19); var content=selector.find('.upb_video-bg'); if(loop=='loop') loop=true; if(muted=='muted') muted=true; content.attr('data-vdo',vdo);content.attr('data-loop',loop);content.attr('data-poster',poster); content.attr('data-muted',muted);content.attr('data-start',start);content.attr('data-stop',stop); if(viewport_vdo===true){ content.addClass('enable-on-viewport'); content.addClass('youtube-video'); vc_viewport_video(); }}else if(option=='vimeo'){ vdo=vdo.substring((vdo.indexOf('vimeo.com/'))+10,(vdo.indexOf('vimeo.com/'))+18); var content=selector.find('.upb_video-bg'); content.html('') }else{ var content=selector.find('.upb_video-src'); hosted_wrapper=content.parent(); if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||controls=='display_control'){ jQuery('', { type: 'video/mp4', src: vdo }).appendTo(content); if(typeof vdo2!=='undefined'&&vdo2!==''){ var vdo2_type=''; if(vdo2.match(/.ogg/i)) vdo2_type='video/ogg'; else if(vdo2.match(/.webm/i)) vdo2_type='video/webm'; if(vdo2_type!=''){ jQuery('', { type: vdo2_type, src: vdo2 }).appendTo(content); }} if(muted=='muted'){ content.attr({'data-mute':'muted'}); } if(loop=='loop'){ content.attr({'loop':loop});} content.attr({'preload':'auto'}); if(viewport_vdo===true){ content.addClass('enable-on-viewport'); content.addClass('hosted-video'); vc_viewport_video(); }else{ if(autoplay=='autoplay'){ content.attr({'autoplay':autoplay});}} }else{ if(controls!='display_control'){ if(poster!=''){ content.parent().find('.video-controls').hide(); } content.remove(); }} } if(poster!=''){ if(content.is('.utube')){ content.css({'background-image':'url('+poster+')'}); }else{ hosted_wrapper.css({'background-image':'url('+poster+')'}); }} jQuery('.upb_video-src').each(function(i,vd){ var is_muted=jQuery(vd).attr('data-mute'); if(typeof is_muted==='undefined') is_muted=false; if(is_muted==='muted'){ var element=jQuery(vd)[0]; element.muted="muted"; }}); }); return this; } jQuery.fn.ultimate_bg_shift=function(){ jQuery(this).each(function(){ var selector=jQuery(this); var bg=selector.data('ultimate-bg'); var style=selector.data('ultimate-bg-style'); var bg_color=selector.prev().css('background-color'); var rep=selector.data('bg-img-repeat'); var size=selector.data('bg-img-size'); var pos=selector.data('bg-img-position'); var sense=selector.data('parallx_sense'); var ride=selector.data('bg-override'); var attach=selector.data('bg_img_attach'); var anim_style=selector.data('upb-bg-animation'); var al,bl,overlay_color=''; var overlay=selector.data('overlay'); var overlay_color=selector.data('overlay-color'); var overlay_pattern=selector.data('overlay-pattern'); var overlay_pattern_opacity=selector.data('overlay-pattern-opacity'); var overlay_pattern_size=selector.data('overlay-pattern-size'); var overlay_pattern_attachment=selector.data('overlay-pattern-attachment'); var fadeout=selector.data('fadeout'); var fadeout_percentage=selector.data('fadeout-percentage'); var parallax_content=selector.data('parallax-content'); var parallax_content_sense=selector.data('parallax-content-sense'); var animation=selector.data('bg-animation'); var animation_type=selector.data('bg-animation-type'); var animation_repeat=selector.data('animation-repeat'); var disble_mobile=selector.data('row-effect-mobile-disable'); var disble_mobile_img_parallax=selector.data('img-parallax-mobile-disable'); var hide_row=selector.data('hide-row'); var rtl=selector.data('rtl'); var multi_color_overlay=''; var multi_color_overlay_opacity=''; var vc_row_class=selector.data('custom-vc-row'); var vc=selector.data('vc'); var theme_support=selector.data('theme-support'); var is_vc_4_4=selector.data('is_old_vc'); if(typeof vc_row_class==='undefined'||vc_row_class==='') vc_row_class='wpb_row'; if(typeof vc==='undefined') vc=0; if(typeof is_vc_4_4==='undefined') is_vc_4_4=false; if(typeof theme_support==='undefined') theme_support='disable'; if(selector.data('multi-color-overlay')){ multi_color_overlay=selector.data('multi-color-overlay'); multi_color_overlay_opacity=selector.data('multi-color-overlay-opacity'); } var overlay_html=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css=''; if(typeof overlay!='undefined'&&overlay.toString()==='true'){ if(overlay_pattern!=''){ if(overlay_pattern_size!='') overlay_pattern_size='background-size:'+overlay_pattern_size+'px;'; if(typeof overlay_pattern_attachment!='undefined'&&overlay_pattern_attachment!='') overlay_pattern_attachment_css='background-attachment:'+overlay_pattern_attachment+';'; overlay_pattern_html='
    '; } if(overlay_color!='') overlay_color_html='
    '; if(multi_color_overlay!='') overlay_multi_color_html='
    '; overlay_html=overlay_color_html+overlay_pattern_html+overlay_multi_color_html; } if(is_vc_4_4==true||theme_support=='enable'){ if(selector.prev().is('p')||selector.prev().is('style')) var parent=selector.prev().prev(); else var parent=selector.prev(); }else{ var parent=selector.prevAll('.'+vc_row_class+':first'); } parent.css('position','relative'); var current_row_classes=parent.attr('class'); if(ride=="browser_size"){ parent.wrapInner('
    '); selector.parent().find('.upb-background-text-wrapper').addClass('full-browser-size'); selector.parent().find('.upb-background-text-wrapper').find('.upb-background-text').addClass(current_row_classes); } if(parallax_content=='parallax_content_value'){ parent.addClass('vc-row-translate'); parent.attr('data-parallax-content-sense', parallax_content_sense); parent.wrapInner('
    '); var ptop=parent.css('padding-top'); var pbottom=parent.css('padding-bottom'); parent.find('.vc-row-translate-wrapper').css({'padding-top':ptop, 'padding-bottom':pbottom}); parent[0].style.setProperty('padding-top', '0px', 'important'); parent[0].style.setProperty('padding-bottom', '0px', 'important'); } if(hide_row!=''){ parent.addClass('ult-vc-hide-row'); parent.attr('data-hide-row', hide_row); } parent.attr('data-rtl', rtl); parent.prepend('
    '+overlay_html+'
    '); selector.remove(); ult_vc_seperators(selector, parent); selector=parent; selector.attr('data-row-effect-mobile-disable',disble_mobile); selector.attr('data-img-parallax-mobile-disable',disble_mobile_img_parallax); if(fadeout=='fadeout_row_value'){ selector.addClass('vc-row-fade'); selector.attr('data-fadeout-percentage',fadeout_percentage); } selector.css('background-image',''); selector=selector.find('.upb_row_bg'); selector.attr('data-upb_br_animation',anim_style); if(size!='automatic'){ selector.css({'background-size':size}); }else{ selector.addClass('upb_bg_size_automatic'); } selector.css({'background-repeat':rep,'background-position':pos,'background-color':bg_color}); if(style=='vcpb-fs-jquery'||style=='vcpb-mlvp-jquery'){ selector.attr('data-img-array',bg); }else{ selector.css({'background-image':bg,'background-attachment':attach}); } selector.attr('data-parallax_sense',sense); selector.attr('data-bg-override',ride); selector.attr('data-bg-animation',animation); selector.attr('data-bg-animation-type',animation_type); selector.attr('data-animation-repeat',animation_repeat); selector.addClass(style); var resize=function(){ var w,h,ancenstor,al,bl; ancenstor=selector.parent(); if(ride=='full'){ ancenstor=jQuery('body'); al=0; } if(ride=='ex-full'){ ancenstor=jQuery('html'); al=0; } if(! isNaN(ride)){ for(var i=0;i wh) wh=fbh; selector.parent().css('height',wh+'px'); selector.parent().find('.upb-background-text-wrapper').css('height',wh+'px'); }} resize(); jQuery(window).load(function(){ resize(); }); jQuery(window).resize(function(){ resize(); }); }) return this; } jQuery.fn.ultimate_grad_shift=function(){ jQuery(this).each(function(){ var selector=jQuery(this); var grad=selector.data('grad'); var grad_type=selector.data('grad-type'); var grad_custom_degree=selector.data('grad-custom-degree'); var ride=jQuery(this).data('bg-override'); var overlay=selector.data('overlay'); var overlay_color=selector.data('overlay-color'); var overlay_pattern=selector.data('overlay-pattern'); var overlay_pattern_opacity=selector.data('overlay-pattern-opacity'); var overlay_pattern_size=selector.data('overlay-pattern-size'); var overlay_pattern_attachment=selector.data('overlay-pattern-attachment'); var anim_style=selector.data('upb-bg-animation'); var fadeout=selector.data('fadeout'); var fadeout_percentage=selector.data('fadeout-percentage'); var parallax_content=selector.data('parallax-content'); var parallax_content_sense=selector.data('parallax-content-sense'); var disble_mobile=selector.data('row-effect-mobile-disable'); var hide_row=selector.data('hide-row'); var rtl=selector.data('rtl'); var multi_color_overlay=''; var multi_color_overlay_opacity=''; var vc_row_class=selector.data('custom-vc-row'); var vc=selector.data('vc'); var theme_support=selector.data('theme-support'); var is_vc_4_4=selector.data('is_old_vc'); if(typeof vc_row_class==='undefined'||vc_row_class==='') vc_row_class='wpb_row'; if(typeof vc==='undefined') vc=0; if(typeof is_vc_4_4==='undefined') is_vc_4_4=false; if(typeof theme_support==='undefined') theme_support='disable'; if(selector.data('multi-color-overlay')){ multi_color_overlay=selector.data('multi-color-overlay'); multi_color_overlay_opacity=selector.data('multi-color-overlay-opacity'); } if(is_vc_4_4==true||theme_support=='enable'){ if(selector.prev().is('p')||selector.prev().is('style')) var parent=selector.prev().prev(); else var parent=selector.prev(); }else{ var parent=selector.prevAll('.'+vc_row_class+':first'); } parent.css('position','relative'); var current_row_classes=parent.attr('class'); selector.remove(); var overlay_html=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css=''; if(typeof overlay!='undefined'&&overlay.toString()==='true'){ if(overlay_pattern!=''){ if(overlay_pattern_size!='') overlay_pattern_size='background-size:'+overlay_pattern_size+'px;'; if(typeof overlay_pattern_attachment!='undefined'&&overlay_pattern_attachment!='') overlay_pattern_attachment_css='background-attachment:'+overlay_pattern_attachment+';'; overlay_pattern_html='
    '; } if(overlay_color!='') overlay_color_html='
    '; if(multi_color_overlay!='') overlay_multi_color_html='
    '; overlay_html=overlay_color_html+overlay_pattern_html+overlay_multi_color_html; } if(ride=="browser_size"){ parent.wrapInner('
    '); parent.find('.upb-background-text-wrapper').find('.upb-background-text').addClass(current_row_classes); parent.addClass('full-browser-size'); } if(parallax_content=='parallax_content_value'){ parent.addClass('vc-row-translate'); parent.attr('data-parallax-content-sense', parallax_content_sense); parent.wrapInner('
    '); var ptop=parent.css('padding-top'); var pbottom=parent.css('padding-bottom'); parent.find('.vc-row-translate-wrapper').css({'padding-top':ptop, 'padding-bottom':pbottom}); parent[0].style.setProperty('padding-top', '0px', 'important'); parent[0].style.setProperty('padding-bottom', '0px', 'important'); } if(hide_row!=''){ parent.addClass('ult-vc-hide-row'); parent.attr('data-hide-row', hide_row); } parent.attr('data-rtl', rtl); parent.prepend('
    '+overlay_html+'
    '); ult_vc_seperators(selector, parent); selector=parent; selector.attr('data-row-effect-mobile-disable',disble_mobile); if(fadeout=='fadeout_row_value'){ selector.addClass('vc-row-fade'); selector.attr('data-fadeout-percentage',fadeout_percentage); } selector.css('background-image',''); selector=selector.find('.upb_row_bg'); selector.attr('data-upb_br_animation',anim_style); grad=grad.replace('url(data:image/svg+xml;base64,',''); var e_pos=grad.indexOf(';'); grad=grad.substring(e_pos+1); selector.attr('style',grad); selector.attr('data-bg-override',ride); if(ride=='browser_size') selector.parent().find('.upb-background-text-wrapper').addClass('full-browser-size'); var resize=function(){ var w,h,ancenstor,al,bl; ancenstor=selector.parent(); if(ride=='full'){ ancenstor=jQuery('body'); al=0; } if(ride=='ex-full'){ ancenstor=jQuery('html'); al=0; } if(! isNaN(ride)){ for(var i=0;i wh) wh=fbh; selector.parent().css('height',wh+'px'); selector.parent().find('.upb-background-text-wrapper').css('height',wh+'px'); }} resize(); jQuery(window).load(function(){ resize(); }); jQuery(window).resize(function(){ resize(); }); }) return this; } jQuery.fn.ultimate_bg_color_shift=function(){ jQuery(this).each(function(){ var selector=jQuery(this); var ride=jQuery(this).data('bg-override'); var bg_color=jQuery(this).data('bg-color'); var fadeout=selector.data('fadeout'); var fadeout_percentage=selector.data('fadeout-percentage'); var parallax_content=selector.data('parallax-content'); var parallax_content_sense=selector.data('parallax-content-sense'); var disble_mobile=selector.data('row-effect-mobile-disable'); var overlay=selector.data('overlay'); var overlay_color=selector.data('overlay-color'); var overlay_pattern=selector.data('overlay-pattern'); var overlay_pattern_opacity=selector.data('overlay-pattern-opacity'); var overlay_pattern_size=selector.data('overlay-pattern-size'); var overlay_pattern_attachment=selector.data('overlay-pattern-attachment'); var hide_row=selector.data('hide-row'); var rtl=selector.data('rtl'); var multi_color_overlay=''; var multi_color_overlay_opacity=''; var vc=selector.data('vc'); var theme_support=selector.data('theme-support'); var vc_row_class=selector.data('custom-vc-row'); var is_vc_4_4=selector.data('is_old_vc'); if(typeof vc_row_class==='undefined'||vc_row_class==='') vc_row_class='wpb_row'; if(typeof vc==='undefined') vc=0; if(typeof is_vc_4_4==='undefined') is_vc_4_4=false; if(typeof theme_support==='undefined') theme_support='disable'; if(selector.data('multi-color-overlay')){ multi_color_overlay=selector.data('multi-color-overlay'); multi_color_overlay_opacity=selector.data('multi-color-overlay-opacity'); } if(is_vc_4_4==true||theme_support=='enable'){ if(selector.prev().is('p')||selector.prev().is('style')) var parent=selector.prev().prev(); else var parent=selector.prev(); }else{ var parent=selector.prevAll('.'+vc_row_class+':first'); } parent.css('position','relative'); var current_row_classes=parent.attr('class'); var overlay_html=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css=''; if(typeof overlay!='undefined'&&overlay.toString()==='true'){ if(overlay_pattern!=''){ if(overlay_pattern_size!='') overlay_pattern_size='background-size:'+overlay_pattern_size+'px;'; if(typeof overlay_pattern_attachment!='undefined'&&overlay_pattern_attachment!='') overlay_pattern_attachment_css='background-attachment:'+overlay_pattern_attachment+';'; overlay_pattern_html='
    '; } if(overlay_color!='') overlay_color_html='
    '; if(multi_color_overlay!='') overlay_multi_color_html='
    '; overlay_html=overlay_color_html+overlay_pattern_html+overlay_multi_color_html; } if(ride=="browser_size"){ parent.wrapInner('
    '); parent.find('.upb-background-text-wrapper').find('.upb-background-text').addClass(current_row_classes); } else var brw_text_wrapper=''; if(hide_row!=''){ parent.addClass('ult-vc-hide-row'); parent.attr('data-hide-row', hide_row); } parent.attr('data-rtl', rtl); if(parallax_content=='parallax_content_value'){ parent.addClass('vc-row-translate'); parent.wrapInner('
    '); parent.attr('data-parallax-content-sense', parallax_content_sense); var ptop=parent.css('padding-top'); var pbottom=parent.css('padding-bottom'); parent.find('.vc-row-translate-wrapper').css({'padding-top':ptop, 'padding-bottom':pbottom}); parent[0].style.setProperty('padding-top', '0px', 'important'); parent[0].style.setProperty('padding-bottom', '0px', 'important'); } parent.prepend('
    '+overlay_html+'
    '); ult_vc_seperators(selector, parent); selector.remove(); selector=parent; selector.attr('data-row-effect-mobile-disable',disble_mobile); if(fadeout=='fadeout_row_value'){ selector.addClass('vc-row-fade'); selector.attr('data-fadeout-percentage',fadeout_percentage); } selector.css('background-image',''); selector=selector.find('.upb_row_bg'); selector.css({'background':bg_color}); selector.attr('data-bg-override',ride); if(ride=='browser_size') selector.parent().find('.upb-background-text-wrapper').addClass('full-browser-size'); var resize=function(){ var w,h,ancenstor,al,bl; ancenstor=selector.parent(); if(ride=='full'){ ancenstor=jQuery('body'); al=0; } if(ride=='ex-full'){ ancenstor=jQuery('html'); al=0; } if(! isNaN(ride)){ for(var i=0;i wh) wh=fbh; selector.parent().css('height',wh+'px'); selector.parent().find('.upb-background-text-wrapper').css('height',wh+'px'); }} resize(); jQuery(window).load(function(){ resize(); }); jQuery(window).resize(function(){ resize(); }); }) return this; } jQuery.fn.ultimate_parallax_animation=function(applyTo){ var windowHeight=jQuery(window).height(); var getHeight=function(obj){ return obj.height(); }; var $this=jQuery(this); var prev_pos=jQuery(window).scrollTop(); function updata(){ var firstTop; var paddingTop=0; var pos=jQuery(window).scrollTop(); $this.each(function(){ if(jQuery(this).data('upb_br_animation')=='upb_fade_animation'){ firstTop=jQuery(this).offset().top; var $element=jQuery(this); var top=$element.offset().top; var height=getHeight($element); if(top + height < pos||top > pos + windowHeight-100){ return; } var pos_change=prev_pos-pos; if((top+height)-windowHeight < pos){ var op_c=(pos_change/windowHeight); if(applyTo=='parent'){ var op=parseInt(jQuery(this).css('opacity')); op +=op_c/2.3; jQuery(this).parents('.wpb_row').css({opacity :op}) } if(applyTo=='self'){ var op=parseInt(jQuery(this).css('opacity')); op +=op_c/2.3; jQuery(this).css({opacity :op}) }} prev_pos=pos; }}); } jQuery(window).bind('scroll', updata).resize(updata); updata(); } var temp_vdo_pos=0; if(jQuery('.upb_content_video, .upb_content_iframe').prev().is('p')) jQuery('.upb_content_video, .upb_content_iframe').prev().prev().css('background-image','').css('background-repeat',''); else jQuery('.upb_content_video, .upb_content_iframe').prev().css('background-image','').css('background-repeat',''); jQuery('.upb_content_video').ultimate_video_bg(); jQuery('.upb_bg_img').ultimate_bg_shift(); jQuery('.upb_content_iframe').ultimate_video_bg(); jQuery('.upb_grad').ultimate_grad_shift(); jQuery('.upb_color').ultimate_bg_color_shift(); jQuery('.upb_no_bg').each(function(index, nobg){ var no_bg_fadeout=jQuery(nobg).attr('data-fadeout'); var fadeout_percentage=jQuery(nobg).data('fadeout-percentage'); var parallax_content=jQuery(nobg).data('parallax-content'); var parallax_content_sense=jQuery(nobg).data('parallax-content-sense'); var disble_mobile=jQuery(nobg).data('row-effect-mobile-disable'); var vc_row_class=jQuery(nobg).data('custom-vc-row'); var vc=jQuery(nobg).data('vc'); var theme_support=jQuery(nobg).data('theme-support'); if(typeof vc_row_class==='undefined'||vc_row_class==='') vc_row_class='wpb_row'; if(typeof vc==='undefined') vc=0; if(typeof theme_support==='undefined') theme_support='disable'; vc=parseFloat(vc); if(vc < 4.4||theme_support=='enable'){ if(jQuery(nobg).prev().is('p')||jQuery(nobg).prev().is('style')) var parent=jQuery(nobg).prev().prev(); else var parent=jQuery(nobg).prev(); }else{ var parent=jQuery(nobg).prevAll('.'+vc_row_class+':first'); } parent.css('position','relative'); if(typeof parent[0]==='undefined') return false; parent.attr('row-effect-mobile-disable',disble_mobile); if(no_bg_fadeout=='fadeout_row_value'){ parent.addClass('vc-row-fade'); parent.data('fadeout-percentage',fadeout_percentage); } if(parallax_content=='parallax_content_value'){ parent.addClass('vc-row-translate'); parent.attr('data-parallax-content-sense', parallax_content_sense); parent.wrapInner('
    '); var ptop=parent.css('padding-top'); var pbottom=parent.css('padding-bottom'); parent.find('.vc-row-translate-wrapper').css({'padding-top':ptop, 'padding-bottom':pbottom}); parent[0].style.setProperty('padding-top', '0px', 'important'); parent[0].style.setProperty('padding-bottom', '0px', 'important'); }}); jQuery('.upb_no_bg').remove(); var resizees=function(){ jQuery('.upb_row_bg').each(function(){ var ride=jQuery(this).data('bg-override'); var theme_support=jQuery(this).data('theme-support'); var vc_row=jQuery(this).data('row'); var ancenstor,parent; if(typeof theme_support!=='undefined'&&theme_support!=='enable') parent=jQuery(this).parents('.'+vc_row+':first'); else parent=jQuery(this).parent(); parent.addClass('vc_row-has-fill'); if(ride=='browser_size'){ ancenstor=jQuery('html'); } if(ride=='ex-full'){ ancenstor=jQuery('html'); } else if(ride=='full'){ ancenstor=jQuery('body'); } else if(! isNaN(ride)){ ancenstor=parent; for(var i=0; i < ride; i++){ if(ancenstor.is('html')){ break; } ancenstor=ancenstor.parent(); }} var al=parseInt(ancenstor.css('paddingLeft')); var ar=parseInt(ancenstor.css('paddingRight')) var w=al+ar + ancenstor.width(); var bl=-(parent.offset().left - ancenstor.offset().left); if(bl > 0){ left=0; } jQuery(this).css({'width': w,'left': bl }) if(ride=='browser_size'){ var a_width=ancenstor.width(); var a_height=ancenstor.height(); var p_width=parent.width(); var p_height=parent.height(); var rheight=parent.find('.upb-background-text').height(); var w_height=jQuery(window).height(); if(rheight > p_height) var m_height=rheight; else var m_height=w_height; parent.css('min-height',m_height+'px'); parent.find('.upb-background-text-wrapper').css('min-height',m_height+'px'); }}); jQuery('.upb_video-bg').each(function(index,ele){ var ride=jQuery(this).data('bg-override'); var rtl=jQuery(this).attr('data-rtl'); var theme_support=jQuery(this).data('theme-support'); var vc_row=jQuery(this).data('row'); var ancenstor,parent; if(typeof theme_support!=='undefined'&&theme_support!=='enable') parent=jQuery(this).parents('.'+vc_row+':first'); else parent=jQuery(this).parent(); if(parent.attr('data-vc-full-width')=='true'||parent.attr('data-vc-full-width')==true){ parent.addClass('uvc-vc-full-width'); }else{ parent.addClass('uvc-row'); } if(ride=='browser_size'){ ancenstor=jQuery('html'); jQuery(this).parents('.upb_video_class').css('overflow','visible'); } else if(ride=='ex-full'){ ancenstor=jQuery('html'); jQuery(this).parents('.upb_video_class').css('overflow','visible'); } else if(ride=='full'){ ancenstor=jQuery('body'); jQuery(this).parents('.upb_video_class').css('overflow','visible'); } else if(! isNaN(ride)&&ride!=0){ ancenstor=parent; for(var i=1; i <=ride; i++){ if(ancenstor.is('html')){ break; } ancenstor=ancenstor.parent(); }} else ancenstor=parent; var al=parseInt(ancenstor.css('paddingLeft')); var ar=parseInt(ancenstor.css('paddingRight')); var vc_margin=parseInt(ancenstor.css('marginLeft')); var w=ancenstor.outerWidth(); var wx=w; var vdo_left=jQuery(this).offset().left; var vdo_left_pos=jQuery(this).position().left; var div_left=ancenstor.offset().left; var cal_left=div_left - vdo_left; if(vdo_left_pos < 0) cal_left=vdo_left_pos + cal_left; if(index==0) temp_vdo_pos=vdo_left_pos; if(temp_vdo_pos > 0) cal_left=temp_vdo_pos; if(cal_left > 0) cal_left=0; if(typeof rtl!=='undefined'&&(rtl===true||rtl==='true')) jQuery(this).css({'width': w,'min-width':w,'right': cal_left }); else jQuery(this).css({'width': w,'min-width':w,'left': cal_left }); var ratio=(16/9); var w_width=jQuery(window).width(); var w_height=jQuery(window).height(); var v_height=parent.find('video').height(); if(ride=='browser_size') var rheight=parent.find('.upb_video-text').height(); else var rheight=parent.height(); if(w < 960){ var rvdh=(16/9)*rheight; w=rvdh + w; } pHeight=Math.ceil(w / ratio); children=jQuery(this).children(); children.removeClass('ult-make-full-height'); if(rheight > wx) children.addClass('ult-make-full-height'); var is_poster=jQuery(this).css('background-image'); if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ if(ride=='browser_size'){ if(rheight > w_height) var m_height=rheight; else var m_height=w_height; parent.addClass('video-browser-size'); parent.find('.upb-background-text-wrapper').addClass('full-browser-size'); parent.css('min-height',m_height+'px'); if(parent.find('.upb_video-text-wrapper').length > 0){ parent.find('.upb_video-text-wrapper').addClass('full-browser-size'); parent.find('.upb_video-text-wrapper').css('min-height',m_height+'px'); }} }else{ if(typeof is_poster==='undefined'||is_poster=='none'){ children.css({'max-height':'auto','height':'auto'}); parent.css('min-height','auto'); }} }); }; resizees(); jQuery(window).load(function(){ resizees(); resize_ult_seperators(); }); jQuery(window).resize(function(){ resizees(); resize_ult_seperators(); }); jQuery(document).ajaxComplete(function(e, xhr, settings){ if(jQuery('.upb_content_video, .upb_content_iframe').prev().is('p')) jQuery('.upb_content_video, .upb_content_iframe').prev().prev().css('background-image','').css('background-repeat',''); else jQuery('.upb_content_video, .upb_content_iframe').prev().css('background-image','').css('background-repeat',''); jQuery('.upb_content_video').ultimate_video_bg(); jQuery('.upb_bg_img').ultimate_bg_shift(); jQuery('.upb_content_iframe').ultimate_video_bg(); jQuery('.upb_grad').ultimate_grad_shift(); jQuery('.upb_color').ultimate_bg_color_shift(); }); jQuery('.video-controls').click(function(e){ var current_action=jQuery(this).attr('data-action'); var vdo=jQuery(this).parent().find('.upb_video-src'); if(current_action=='pause'){ jQuery(this).attr('data-action','play'); vdo[0].play(); jQuery(this).html(''); }else{ jQuery(this).attr('data-action','pause'); vdo[0].pause(); jQuery(this).html(''); } if(vdo.hasClass('enable-on-viewport')){ vdo.addClass('override-controls'); }}); check_for_hide_row(); function check_for_hide_row(){ jQuery('.ult-vc-hide-row').each(function(i,row){ var hide_classes=jQuery(row).data('hide-row'); if(hide_classes!='') jQuery(row).addClass(hide_classes); }); } resize_ult_seperators(); function resize_ult_seperators(){ jQuery('.ult-vc-seperator').each(function(i,s){ var full_width=jQuery(this).data('full-width'); var is_rtl=jQuery(this).parent().data('rtl'); if(typeof is_rtl=='undefined') is_rtl='false'; var override=jQuery(this).parent().find('.upb_row_bg').data('bg-override'); if(typeof override=='undefined') var override=jQuery(this).parent().find('.upb_video-bg').data('bg-override'); if((override=='ex-full'||override=='full'||override=='browser_size')&&full_width==true){ var win=jQuery('html').width(); if(jQuery(this).hasClass('ult-rounded-split-seperator-wrapper')){ var border=jQuery(this).data('border'); var border_width=jQuery(this).data('border-width'); if(typeof border!='undefined'&&border!='none'&&border!='undefined') win=win - border_width; } var left=jQuery(this).offset().left; jQuery(this).find('.ult-main-seperator-inner').width(win); if(is_rtl.toString()=='true') jQuery(this).find('.ult-main-seperator-inner').css({'margin-right':-left+'px'}); else jQuery(this).find('.ult-main-seperator-inner').css({'margin-left':-left+'px'}); }}); } jQuery('.vcpb-animated').each(function(index, element){ var repeat=jQuery(element).data('animation-repeat'); jQuery(this).css({'background-repeat':repeat}); var mobile_disable=jQuery(element).parent().attr('data-img-parallax-mobile-disable'); if(typeof mobile_disable=="undefined") mobile_disable='false'; else mobile_disable=mobile_disable.toString(); if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) var is_mobile='false'; else var is_mobile='true'; if(is_mobile=='true'&&mobile_disable=='true') var disable_row_effect='true'; else var disable_row_effect='false'; if(disable_row_effect=='false'){ var scrollSpeed=10; if(jQuery(this).attr('data-parallax_sense')!='') scrollSpeed=jQuery(this).attr('data-parallax_sense'); scrollSpeed=100 - scrollSpeed; var animation_type=jQuery(this).attr('data-bg-animation-type'); var animation=jQuery(this).attr('data-bg-animation'); var current=0; var direction=animation_type; setInterval(function(e){ if(animation=='right-animation'||animation=='bottom-animation') current -=1; else current +=1; jQuery(element).css("backgroundPosition", (direction=='h') ? current+"px 0":"0 " + current+"px"); }, scrollSpeed); }}); }); }(jQuery)); var resiz=function(){ jQuery('.vcpb-fs-jquery').each(function(){ var selector=jQuery(this); var sense=selector.data('parallax_sense'); var incr=(selector.outerWidth()*(sense/100)); var hp=jQuery(selector).find('.ultimate_h_parallax'); if(hp.parent().outerHeight()>hp.outerHeight()){ hp.css('min-height',(hp.parent().outerHeight())+incr+'px') } if(hp.outerHeight()>hp.outerWidth()){ hp.css('width','auto') } jQuery(selector).css('background-image','') }) } jQuery(document).ready(function(){ jQuery('.upb_row_bg').each(function(index,urow){ var row=jQuery(urow).parent(); row[0].style.setProperty('background-image', 'none', 'important'); }); setTimeout(function(){ if(jQuery('.vcpb-fs-jquery').length > 0){ if(!jQuery.event.special.frame){ (function(d,h){function i(a,b){function e(){f.frameCount++;a.call(f)}var f=this,g;this.frameDuration=b||25;this.frameCount=-1;this.start=function(){e();g=setInterval(e,this.frameDuration)};this.stop=function(){clearInterval(g);g=null}}function j(){var a=d.event.special.frame.handler,b=d.Event("frame"),e=this.array,f=e.length;for(b.frameCount=this.frameCount;f--;)a.call(e[f],b)}var c;if(!d.event.special.frame)d.event.special.frame={setup:function(a){if(c)c.array.push(this);else{c=new i(j,a&&a.frameDuration); c.array=[this];var b=setTimeout(function(){c.start();clearTimeout(b);b=null},0)}},teardown:function(){for(var a=c.array,b=a.length;b--;)if(a[b]===this){a.splice(b,1);break}if(a.length===0){c.stop();c=h}},handler:function(){d.event.handle.apply(this,arguments)}}})(jQuery); } (function(l,t){function y(i){return this.lib[i]}function q(i){return typeof i==="boolean"?i:!!parseFloat(i)}function r(i,b){var k=[q(i.xparallax),q(i.yparallax)];this.ontarget=false;this.decay=i.decay;this.pointer=b||[0.5,0.5];this.update=function(e,a){if(this.ontarget)this.pointer=e;else if((!k[0]||u(e[0]-this.pointer[0])0){if(g===2){g=0;if(d)h=d}for(;m--;)if(a[m]){f[m]=(h[m]-j[m])/c[m];f[m]=f[m]<0?0:f[m]>1?1:f[m]}this.active=true;this.pointer=f}else this.active=false};this.updateSize=function(){var h=e.width(),j=e.height();k.size=[h,j];k.threshold=[1/h,1/j]};this.updatePos=function(){var h= e.offset()||{left:0,top:0},j=parseInt(e.css("borderLeftWidth"))+parseInt(e.css("paddingLeft")),c=parseInt(e.css("borderTopWidth"))+parseInt(e.css("paddingTop"));k.pos=[h.left+j,h.top+c]};l(window).bind("resize",k.updateSize).bind("resize",k.updatePos);e.bind("mouseenter",function(){g=1}).bind("mouseleave",function(h){g=2;d=[h.pageX,h.pageY]});this.updateSize();this.updatePos()}function A(i,b){var k=[],e=[],a=[],g=[];this.update=function(d){for(var h=[],j,c,f=2,m={};f--;)if(e[f]){h[f]=e[f]*d[f]+a[f]; if(k[f]){j=g[f];c=h[f]*-1}else{j=h[f]*100+"%";c=h[f]*this.size[f]*-1}if(f===0){m.left=j;m.marginLeft=c}else{m.top=j;m.marginTop=c}}i.css(m)};this.setParallax=function(d,h,j,c){d=[d||b.xparallax,h||b.yparallax];j=[j||b.xorigin,c||b.yorigin];for(c=2;c--;){k[c]=o.px.test(d[c]);if(typeof j[c]==="string")j[c]=o.percent.test(j[c])?parseFloat(j[c])/100:v[j[c]]||1;if(k[c]){e[c]=parseInt(d[c]);a[c]=j[c]*(this.size[c]-e[c]);g[c]=j[c]*100+"%"}else{e[c]=d[c]===true?1:o.percent.test(d[c])?parseFloat(d[c])/100: d[c];a[c]=e[c]?j[c]*(1-e[c]):0}}};this.getPointer=function(){for(var d=i.offsetParent(),h=i.position(),j=[],c=[],f=2;f--;){j[f]=k[f]?0:h[f===0?"left":"top"]/(d[f===0?"outerWidth":"outerHeight"]()-this.size[f]);c[f]=(j[f]-a[f])/e[f]}return c};this.setSize=function(d,h){this.size=[d||i.outerWidth(),h||i.outerHeight()]};this.setSize(b.width,b.height);this.setParallax(b.xparallax,b.yparallax,b.xorigin,b.yorigin)}function s(i){var b=l(this),k=i.data,e=b.data(n),a=k.port,g=k.mouse,d=e.mouse;if(k.timeStamp!==i.timeStamp){k.timeStamp=i.timeStamp;a.update(w);if(a.active||!g.ontarget)g.update(a.pointer,a.threshold)}if(d){d.update(e.freeze?e.freeze.pointer:a.pointer,a.threshold);if(d.ontarget){delete e.mouse;e.freeze&&b.unbind(p).addClass(k.freezeClass)}g=d}else g.ontarget&&!a.active&&b.unbind(p);e.layer.update(g.pointer)}var n="parallax",x={mouseport:"body",xparallax:true,yparallax:true,xorigin:0.5,yorigin:0.5,decay:0.66,frameDuration:30,freezeClass:"freeze"},v={left:0,top:0,middle:0.5,center:0.5,right:1, bottom:1},o={px:/^\d+\s?px$/,percent:/^\d+\s?%$/},p="frame."+n,u=Math.abs,w=[0,0];y.lib=v;l.fn[n]=function(i){var b=l.extend({},l.fn[n].options,i),k=arguments,e=this;if(!(b.mouseport instanceof l))b.mouseport=l(b.mouseport);b.port=new z(b.mouseport,b);b.mouse=new r(b);b.mouseport.bind("mouseenter",function(){b.mouse.ontarget=false;e.each(function(){var a=l(this);a.data(n).freeze||a.bind(p,b,s)})});return e.bind("freeze",function(a){var g=l(this),d= g.data(n),h=d.mouse||d.freeze||b.mouse,j=o.percent.exec(a.x)?parseFloat(a.x.replace(/%$/,""))/100:a.x||h.pointer[0],c=o.percent.exec(a.y)?parseFloat(a.y.replace(/%$/,""))/100:a.y||h.pointer[1];a=a.decay;d.freeze={pointer:[j,c]};d.mouse=new r(b,h.pointer);if(a!==t)d.mouse.decay=a;g.bind(p,b,s)}).bind("unfreeze",function(a){var g=l(this),d=g.data(n);a=a.decay;var h;if(d.freeze){h=d.mouse?d.mouse.pointer:d.freeze.pointer;d.mouse=new r(b);d.mouse.pointer=h;if(a!==t)d.mouse.decay=a;delete d.freeze;g.removeClass(x.freezeClass).bind(p, b,s)}}).each(function(a){var g=l(this);a=k[a+1]?l.extend({},b,k[a+1]):b;var d=new A(g,a);g.data(n,{layer:d,mouse:new r(a,d.getPointer())})})};l.fn[n].options=x;l(document).ready(function(){l(document).mousemove(function(i){w=[i.pageX,i.pageY]})})})(jQuery); jQuery('.vcpb-fs-jquery').each(function(){ var selector=jQuery(this); var sense=selector.data('parallax_sense'); var incr=(selector.outerWidth()*(sense/100)); var img_list=selector.data('img-array'); img_list=img_list.split(','); var img_list_len=img_list.length; for (var i=0; i < img_list_len; i++){ jQuery(selector).prepend('
    ') }; var hp=jQuery(selector).find('.ultimate_h_parallax'); hp.css({'max-width':'none','position':'absolute'}); hp.css('min-width',(hp.parent().outerWidth())+incr+'px'); }); resiz(); }},200); }); jQuery(window).resize(function(){ resiz(); }); jQuery(window).load(function(){ setTimeout(function(){ jQuery('.vcpb-fs-jquery').each(function(){ var layer_count=jQuery(this).find('.ultimate_h_parallax').length; layer_count=1/layer_count; var lay_opt=new Array(); jQuery(this).find('.ultimate_h_parallax').each(function(index){ lay_opt.push("{'xparallax':"+ layer_count*(index+1)+" , 'yparallax':"+ layer_count*(index+1)+"}"); }); lay_opt=lay_opt.join(","); if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) var is_mobile='false'; else var is_mobile='true'; var is_img_parallax_disable_on_mobile=jQuery(this).parent().data('img-parallax-mobile-disable').toString(); if(is_mobile=='true'&&is_img_parallax_disable_on_mobile=='true') var disable_row_effect='true'; else var disable_row_effect='false'; if(disable_row_effect=='false') eval("jQuery(this).find('.ultimate_h_parallax').parallax({mouseport: jQuery(this).parent()},"+lay_opt+")"); }); },500); }); (function($){ var $window=jQuery(window); var windowHeight=$window.height(); $window.resize(function (){ windowHeight=$window.height(); }); jQuery.fn.vparallax=function(xpos, speedFactor, outerHeight){ var $this=jQuery(this); var getHeight; var firstTop; var paddingTop=0; /*$this.each(function(){ });*/ if(outerHeight){ getHeight=function(jqo){ return jqo.outerHeight(true); };}else{ getHeight=function(jqo){ return jqo.height(); };} if(arguments.length < 1||xpos===null) xpos="50%"; if(arguments.length < 2||speedFactor===null) speedFactor=0.5; if(arguments.length < 3||outerHeight===null) outerHeight=true; function update(){ var pos=$window.scrollTop(); $this.each(function(){ firstTop=jQuery(this).offset().top; var $element=jQuery(this); var top=$element.offset().top; var height=getHeight($element); if(top + height < pos||top > pos + windowHeight){ return; } var f=Math.round((firstTop - pos) * speedFactor); f=-f; if(jQuery(this).parent().hasClass('vcpb-mlvp-jquery')) var is_img_parallax_disable_on_mobile=jQuery(this).parent().parent().data('img-parallax-mobile-disable').toString(); else var is_img_parallax_disable_on_mobile=jQuery(this).parent().data('img-parallax-mobile-disable').toString(); if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) var is_mobile='false'; else var is_mobile='true'; if(is_img_parallax_disable_on_mobile=='true'&&is_mobile=='true') var disable_row_parallax_effect='true'; else var disable_row_parallax_effect='false'; if(disable_row_parallax_effect=='false'){ jQuery(this).css('backgroundPosition', xpos + " " + f + "px"); }}); } $window.bind('scroll', update).resize(update); update(); }; jQuery.fn.hparallax=function(xpos, speedFactor, outerHeight){ var $this=jQuery(this); var getHeight; var firstTop; var paddingTop=0; if(outerHeight){ getHeight=function(jqo){ return jqo.outerHeight(true); };}else{ getHeight=function(jqo){ return jqo.height(); };} if(arguments.length < 1||xpos===null) xpos="50%"; if(arguments.length < 2||speedFactor===null) speedFactor=0.5; if(arguments.length < 3||outerHeight===null) outerHeight=true; speedFactor=(jQuery(this).data('parallax_sense'))/100; xpos='0px'; var prev_pos=$window.scrollTop(); function update(){ var pos=$window.scrollTop(); $this.each(function(){ firstTop=jQuery(this).offset().top; var $element=jQuery(this); var top=$element.offset().top; var height=getHeight($element); if(top + height < pos||top > pos + windowHeight){ return; } var bg=jQuery(this).css('backgroundPosition'); var pxpos=bg.indexOf('px'); var bgxpos=bg.substring(0,pxpos); var f=0; if(prev_pos-pos <=0){ f=parseInt(bgxpos) - parseInt(speedFactor*(Math.abs(prev_pos-pos))); }else{ f=parseInt(bgxpos) + parseInt(speedFactor *(prev_pos - pos)); if(f>0) f=0; } var is_img_parallax_disable_on_mobile=jQuery(this).parent().data('img-parallax-mobile-disable').toString(); if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) var is_mobile='false'; else var is_mobile='true'; if(is_mobile=='true'&&is_img_parallax_disable_on_mobile=='true') var disable_row_effect='true'; else var disable_row_effect='false'; if(disable_row_effect=='false'){ jQuery(this).css('backgroundPosition', f + "px "+ xpos); } /*if(this).hasClass('upb_bg_size_automatic'){ jQuery(this).each(function(){ var vh=jQuery(window).outerHeight(); var bh=jQuery(this).parent().outerHeight(); var speed=jQuery(this).data('parallax_sense'); var bw=jQuery(this).outerWidth() var ih=(((vh+bh)/100)*speed)+bw; jQuery(this).css('background-size',ih+'px auto'); }) }*/ }); prev_pos=pos; } $window.bind('scroll', update).resize(update); update(); };})(jQuery); jQuery(window).load(function(){ if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) var is_mobile='false'; else var is_mobile='true'; jQuery('.vcpb-mlvp-jquery').each(function(){ var selector=jQuery(this); var img_list=selector.data('img-array'); img_list=img_list.split(','); var img_list_len=img_list.length; for (var i=0; i < img_list_len; i++){ jQuery(selector).prepend('
    ') }; var hp=jQuery(selector).find('.vertical_layer_parallax'); hp.css({'max-width':'none','position':'absolute'}); }); jQuery('.vcpb-mlvp-jquery').each(function(){ var layer_count=jQuery(this).find('.vertical_layer_parallax').length; var sense=parseInt(jQuery(this).data('parallax_sense'))/100; var is_img_parallax_disable_on_mobile=jQuery(this).parent().data('img-parallax-mobile-disable').toString(); layer_count=(sense)/layer_count; sense=0; if(is_mobile=='true'&&is_img_parallax_disable_on_mobile=='true') var disable_row_effect='true'; else var disable_row_effect='false'; jQuery(this).find('.vertical_layer_parallax').each(function(index){ sense +=layer_count; jQuery(this).css({'height':jQuery(this).parent().outerHeight()+'px','width':jQuery(this).parent().outerWidth()+'px',}). attr('data-p-sense',sense); if(disable_row_effect=='false') jQuery(this).vparallax("0%",sense); }) }) jQuery('.vcpb-vz-jquery').each(function(){ var is_img_parallax_disable_on_mobile=jQuery(this).parent().data('img-parallax-mobile-disable'); if(is_mobile=='true'&&is_img_parallax_disable_on_mobile=='true') var disable_row_effect='true'; else var disable_row_effect='false'; if(disable_row_effect=='false') jQuery(this).vparallax("50%",jQuery(this).data('parallax_sense')/100); }) jQuery('.vcpb-hz-jquery').hparallax(); if(jQuery('.vcpb-hz-jquery').length>0){ setTimeout(function(){ jQuery(window).scrollTop(0); }, 1000); }}); (function($){ $.fn.bsf_appear=function(fn, options){ var settings=$.extend({ data: undefined, one: true, accX: 0, accY: 0 }, options); return this.each(function(){ var t=$(this); t.bsf_appeared=false; if(!fn){ t.trigger('bsf_appear', settings.data); return; } var w=$(window); var check=function(){ if(!t.is(':visible')){ t.bsf_appeared=false; return; } var a=w.scrollLeft(); var b=w.scrollTop(); var o=t.offset(); var x=o.left; var y=o.top; var ax=settings.accX; var ay=settings.accY; var th=t.height(); var wh=w.height(); var tw=t.width(); var ww=w.width(); if(y + th + ay >=b && y <=b + wh + ay && x + tw + ax >=a && x <=a + ww + ax){ if(!t.bsf_appeared) t.trigger('bsf_appear', settings.data); }else{ t.bsf_appeared=false; }}; var modifiedFn=function(){ t.bsf_appeared=true; if(settings.one){ w.unbind('scroll', check); var i=$.inArray(check, $.fn.bsf_appear.checks); if(i >=0) $.fn.bsf_appear.checks.splice(i, 1); } fn.apply(this, arguments); }; if(settings.one) t.one('bsf_appear', settings.data, modifiedFn); else t.bind('bsf_appear', settings.data, modifiedFn); w.scroll(check); $.fn.bsf_appear.checks.push(check); (check)(); }); }; $.extend($.fn.bsf_appear, { checks: [], timeout: null, checkAll: function(){ var length=$.fn.bsf_appear.checks.length; if(length > 0) while (length--) ($.fn.bsf_appear.checks[length])(); }, run: function(){ if($.fn.bsf_appear.timeout) clearTimeout($.fn.bsf_appear.timeout); $.fn.bsf_appear.timeout=setTimeout($.fn.bsf_appear.checkAll, 20); }}); $.each(['append', 'prepend', 'after', 'before', 'attr', 'removeAttr', 'addClass', 'removeClass', 'toggleClass', 'remove', 'css', 'show', 'hide'], function(i, n){ var old=$.fn[n]; if(old){ $.fn[n]=function(){ var r=old.apply(this, arguments); $.fn.bsf_appear.run(); return r; }} }); })(jQuery); (function($){ "use strict"; $.fn.vc_translate_row=function(){ var window_scroll=$(window).scrollTop(); var window_height=$(window).height(); $(this).each(function(index, element){ var mobile_disable=$(element).attr('data-row-effect-mobile-disable'); if(typeof mobile_disable=="undefined") mobile_disable='false'; else mobile_disable=mobile_disable.toString(); if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) var is_mobile='false'; else var is_mobile='true'; if(is_mobile=='true'&&mobile_disable=='true') var disable_row_effect='true'; else var disable_row_effect='false'; if(disable_row_effect=='false'){ var percentage=0 var row_height=$(element).outerHeight(); var row_top=$(element).offset().top; var position=row_top - window_scroll; var row_visible=position+row_height; var pcsense=$(element).attr('data-parallax-content-sense'); var sense=(pcsense/100); var translate=0; var cut=window_height - (window_height * (percentage/100)); if(row_visible <=cut&&position <=0){ if(row_height > window_height){ var translate=(window_height - row_visible)*sense; }else{ var translate=-(position*sense); } if(translate < 0) translate=0; }else{ translate=0; } var find_class='.upb_row_bg,.upb_video-wrapper,.ult-vc-seperator'; $(element).find('.vc-row-translate-wrapper').children().each(function(index, child){ if(!jQuery(child).is(find_class)){ $(child).css({'transform':'translate3d(0,'+translate+'px,0)', '-webkit-transform':'translate3d(0,'+translate+'px,0)', '-ms-transform':'translate3d(0,'+translate+'px,0)'}); }}); }}); } $.fn.vc_fade_row=function(){ var window_scroll=$(window).scrollTop(); var window_height=$(window).height(); $(this).each(function(index, element){ var mobile_disable=$(element).attr('data-row-effect-mobile-disable'); if(typeof mobile_disable=="undefined") mobile_disable='false'; else mobile_disable=mobile_disable.toString(); if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) var is_mobile='false'; else var is_mobile='true'; if(is_mobile=='true'&&mobile_disable=='true') var disable_row_effect='true'; else var disable_row_effect='false'; if(disable_row_effect=='false'){ var min_opacity=0; var percentage=$(element).data('fadeout-percentage'); percentage=100 - percentage; var no_class=''; var row_height=$(element).outerHeight(); var row_top=$(element).offset().top; var position=row_top - window_scroll; var row_bottom=position+row_height; var opacity=1; var cut=window_height - (window_height * (percentage/100)); var newop=(((cut-row_bottom)/cut)*(1-min_opacity)); if(newop > 0) opacity=1-newop; if(row_bottom <=cut){ if(opacity < min_opacity) opacity=min_opacity; else if(opacity > 1) opacity=1; $(element).children().each(function(rindex, row_child){ var find_class='.upb_row_bg,.upb_video-wrapper,.ult-vc-seperator'; if(!$(row_child).is(find_class)){ $(row_child).css({ 'opacity':opacity }); }}); }else{ $(element).children().each(function(rindex, row_child){ $(row_child).css({ 'opacity':opacity }); }); }} }); } jQuery(document).ready(function(){ init_ultimate_spacer(); }); jQuery(window).scroll(function(){ var $hideOnMobile=jQuery('.ult-no-mobile').length; if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ animate_block(); }else{ if($hideOnMobile >=1) jQuery(".ult-animation").css("opacity",1); else animate_block(); } $('.vc-row-fade').vc_fade_row(); $('.vc-row-translate').vc_translate_row(); }); jQuery(window).load(function(){ jQuery('.ult-banner-block-custom-height').each(function(index, element){ var $blockimg=jQuery(this).find('img'); var block_width=jQuery(this).width(); var block_height=jQuery(this).height(); var img_width=$blockimg.width(); if(block_width > block_height) $blockimg.css({'width':'100%','height':'auto'}); }); var flip_resize_count=0, flip_time_resize=0; var flip_box_resize=function(){ jQuery('.ifb-jq-height').each(function(){ jQuery(this).find('.ifb-back').css('height','auto'); jQuery(this).find('.ifb-front').css('height','auto'); var fh=parseInt(jQuery(this).find('.ifb-front > div').outerHeight(true)); var bh=parseInt(jQuery(this).find('.ifb-back > div').outerHeight(true)); var gr=(fh>bh)?fh:bh; jQuery(this).find('.ifb-front').css('height',gr+'px'); jQuery(this).find('.ifb-back').css('height',gr+'px'); if(jQuery(this).hasClass('vertical_door_flip')){ jQuery(this).find('.ifb-flip-box').css('height',gr+'px'); } else if(jQuery(this).hasClass('horizontal_door_flip')){ jQuery(this).find('.ifb-flip-box').css('height',gr+'px'); } else if(jQuery(this).hasClass('style_9')){ jQuery(this).find('.ifb-flip-box').css('height',gr+'px'); }}) jQuery('.ifb-auto-height').each(function(){ if((jQuery(this).hasClass('horizontal_door_flip'))||(jQuery(this).hasClass('vertical_door_flip'))){ var fh=parseInt(jQuery(this).find('.ifb-front > div').outerHeight()); var bh=parseInt(jQuery(this).find('.ifb-back > div').outerHeight()); var gr=(fh>bh)?fh:bh; jQuery(this).find('.ifb-flip-box').css('height',gr+'px'); }}) } if(navigator.userAgent.indexOf('Safari')!=-1&&navigator.userAgent.indexOf('Chrome')==-1){ setTimeout(function(){ flip_box_resize(); }, 500); }else{ flip_box_resize(); } jQuery(document).on('ultAdvancedTabClicked',function(event, nav){ flip_box_resize(); }); jQuery(window).resize(function(){ flip_resize_count++; setTimeout(function(){ flip_time_resize++; if(flip_resize_count==flip_time_resize){ flip_box_resize(); }}, 500); }); var tiid=0; var mason_des=0; jQuery(window).resize(function(){ ib_responsive(); jQuery('.csstime.smile-icon-timeline-wrap').each(function(){ timeline_icon_setting(jQuery(this)); }); $('.jstime .timeline-wrapper').each(function(){ timeline_icon_setting(jQuery(this)); }); if(jQuery('.smile-icon-timeline-wrap.jstime .timeline-line').css('display')=='none'){ if(mason_des===0){ $('.jstime .timeline-wrapper').masonry('destroy'); mason_des=1; }}else{ if(mason_des==1){ jQuery('.jstime .timeline-wrapper').masonry({ "itemSelector": '.timeline-block', }); setTimeout(function(){ jQuery('.jstime .timeline-wrapper').masonry({ "itemSelector": '.timeline-block', }); jQuery(this).find('.timeline-block').each(function(){ if(jQuery(this).css('left')=='0px'){ jQuery(this).addClass('timeline-post-left'); }else{ jQuery(this).addClass('timeline-post-right'); }}); mason_des=0; }, 300); }} }); $('.smile-icon-timeline-wrap').each(function(){ var cstm_width=jQuery(this).data('timeline-cutom-width'); if(cstm_width){ jQuery(this).css('width',((cstm_width*2)+40)+'px'); } var width=parseInt(jQuery(this).width()); var b_wid=parseInt(jQuery(this).find('.timeline-block').width()); var l_pos=(b_wid/width)*100; var time_r_margin=(width - (b_wid*2) - 40); time_r_margin=(time_r_margin/width)*100; $('.jstime .timeline-wrapper').each(function(){ jQuery(this).masonry({ "itemSelector": '.timeline-block', }); }); setTimeout(function(){ $('.jstime .timeline-wrapper').each(function(){ jQuery(this).find('.timeline-block').each(function(){ if(jQuery(this).css('left')=='0px'){ jQuery(this).addClass('timeline-post-left'); }else{ jQuery(this).addClass('timeline-post-right'); } timeline_icon_setting(jQuery(this)); }); jQuery('.timeline-block').each(function(){ var div=parseInt(jQuery(this).css('top'))-parseInt(jQuery(this).next().css('top')); if((div < 14&&div > 0)||div==0){ jQuery(this).next().addClass('time-clash-right'); } else if(div > -14){ jQuery(this).next().addClass('time-clash-left'); }}) jQuery('.smile-icon-timeline-wrap').each(function(){ var block_bg=jQuery(this).data('time_block_bg_color'); jQuery(this).find('.timeline-block').css('background-color',block_bg); jQuery(this).find('.timeline-post-left.timeline-block l').css('border-left-color',block_bg); jQuery(this).find('.timeline-post-right.timeline-block l').css('border-right-color',block_bg); jQuery(this).find('.feat-item').css('background-color',block_bg); if(jQuery(this).find('.feat-item').find('.feat-top').length > 0) jQuery(this).find('.feat-item l').css('border-top-color',block_bg); else jQuery(this).find('.feat-item l').css('border-bottom-color',block_bg); }) jQuery('.jstime.timeline_preloader').remove(); jQuery('.smile-icon-timeline-wrap.jstime').css('opacity','1'); }); jQuery('.timeline-post-right').each(function(){ var cl=jQuery(this).find('.timeline-icon-block').clone(); jQuery(this).find('.timeline-icon-block').remove(); jQuery(this).find('.timeline-header-block').after(cl); }) }, 1000); jQuery(this).find('.timeline-wrapper').each(function(){ if(jQuery(this).text().trim()===''){ jQuery(this).remove(); }}); if(! jQuery(this).find('.timeline-line ').next().hasClass('timeline-separator-text')){ jQuery(this).find('.timeline-line').prepend(''); } var sep_col=jQuery(this).data('time_sep_color'); var sep_bg=jQuery(this).data('time_sep_bg_color'); var line_color=jQuery('.smile-icon-timeline-wrap .timeline-line').css('border-right-color'); jQuery(this).find('.timeline-dot').css('background-color',sep_bg); jQuery(this).find('.timeline-line z').css('background-color',sep_bg); jQuery(this).find('.timeline-line o').css('background-color',sep_bg); jQuery(this).find('.timeline-separator-text').css('color',sep_col); jQuery(this).find('.timeline-separator-text .sep-text').css('background-color',sep_bg); jQuery(this).find('.ult-timeline-arrow s').css('border-color','rgba(255, 255, 255, 0) '+line_color); jQuery(this).find('.feat-item .ult-timeline-arrow s').css('border-color',line_color+' rgba(255, 255, 255, 0)'); jQuery(this).find('.timeline-block').css('border-color',line_color); jQuery(this).find('.feat-item').css('border-color',line_color); }); }); jQuery(document).ready(function($){ var $hideOnMobile=jQuery('.ult-no-mobile').length; if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ animate_block(); }else{ if($hideOnMobile >=1) jQuery(".ult-animation").css("opacity",1); else animate_block(); } ib_responsive(); jQuery(".ubtn").hover(function(){ var $this=jQuery(this); $this.find(".ubtn-text").css("color",$this.data('hover')); $this.find(".ubtn-hover").css("background",$this.data('hover-bg')).addClass('ubtn-hover-active'); var hover_bg=($this.data('hover-bg')!='') ? $this.data('hover-bg'):false; setTimeout(function(){ if(hover_bg!==false){ if($this.hasClass('.ubtn-fade-bg')){ $this.css("background",$this.data('hover-bg')); }} },150); var old_style=$this.attr('style'); if($this.data('shadow-hover')!=''){ var old_shadow=$this.css('box-shadow'); old_style +='box-shadow:'+$this.data('shadow-hover'); } $this.attr('style', old_style); if($this.data('border-hover')!=''){ $this.css("border-color",$this.data('border-hover')); } if($this.data('shadow-click')!='none'){ var temp_adj=$this.data('shd-shadow')-3; if($this.is('.shd-left')!='') $this.css({ 'right':temp_adj}); else if($this.is('.shd-right')!='') $this.css({ 'left':temp_adj }); else if($this.is('.shd-top')!='') $this.css({ 'bottom':temp_adj }); else if($this.is('.shd-bottom')!='') $this.css({ 'top':temp_adj }); }}, function(){ var $this=jQuery(this); $this.find(".ubtn-text").removeAttr('style'); $this.find(".ubtn-hover").removeClass('ubtn-hover-active'); $this.css("background",$this.data('bg')); var border_color=$this.data('border-color'); var old_style=$this.attr('style'); if($this.data('shadow-hover')!='') old_style +='box-shadow:'+$this.data('shadow'); $this.attr('style', old_style); if($this.data('border-hover')!=''){ $this.css("border-color",border_color); } if($this.data('shadow-click')!='none'){ $this.removeClass('no-ubtn-shadow'); if($this.is('.shd-left')!='') $this.css({ 'right':'auto'}); else if($this.is('.shd-right')!='') $this.css({ 'left':'auto' }); else if($this.is('.shd-top')!='') $this.css({ 'bottom':'auto' }); else if($this.is('.shd-bottom')!='') $this.css({ 'top':'auto' }); }} ); jQuery(".ubtn").on("focus blur mousedown mouseup", function(e){ var $this=jQuery(this); if($this.data('shadow-click')!='none'){ setTimeout(function(){ if($this.is(":focus")){ $this.addClass("no-ubtn-shadow"); if($this.is('.shd-left')!='') $this.css({ 'right':$this.data('shd-shadow')+'px'}); else if($this.is('.shd-right')!='') $this.css({ 'left':$this.data('shd-shadow')+'px' }); else if($this.is('.shd-top')!='') $this.css({ 'bottom':$this.data('shd-shadow')+'px' }); else if($this.is('.shd-bottom')!='') $this.css({ 'top':$this.data('shd-shadow')+'px' }); }else{ $this.removeClass("no-ubtn-shadow"); if($this.is('.shd-left')!='') $this.css({ 'right':'auto'}); else if($this.is('.shd-right')!='') $this.css({ 'left':'auto' }); else if($this.is('.shd-top')!='') $this.css({ 'bottom':'auto' }); else if($this.is('.shd-bottom')!='') $this.css({ 'top':'auto' }); }}, 0); }}); jQuery(".ubtn").focusout(function(){ var $this=jQuery(this); $this.removeClass("no-ubtn-shadow"); if($this.is('.shd-left')!='') $this.css({ 'right':'auto'}); else if($this.is('.shd-right')!='') $this.css({ 'left':'auto' }); else if($this.is('.shd-top')!='') $this.css({ 'bottom':'auto' }); else if($this.is('.shd-bottom')!='') $this.css({ 'top':'auto' }); }); jQuery('.smile-icon-timeline-wrap.jstime').css('opacity','0'); jQuery('.jstime.timeline_preloader').css('opacity','1'); jQuery('.smile-icon-timeline-wrap.csstime .timeline-wrapper').each(function(){ jQuery('.csstime .timeline-block:even').addClass('timeline-post-left'); jQuery('.csstime .timeline-block:odd').addClass('timeline-post-right'); }) jQuery('.csstime .timeline-post-right').each(function(){ jQuery(this).css('float','right'); jQuery("
    ").insertAfter(jQuery(this)); }) jQuery('.csstime.smile-icon-timeline-wrap').each(function(){ var block_bg=jQuery(this).data('time_block_bg_color'); jQuery(this).find('.timeline-block').css('background-color',block_bg); jQuery(this).find('.timeline-post-left.timeline-block l').css('border-left-color',block_bg); jQuery(this).find('.timeline-post-right.timeline-block l').css('border-right-color',block_bg); jQuery(this).find('.feat-item').css('background-color',block_bg); if(jQuery(this).find('.feat-item').find('.feat-top').length > 0) jQuery(this).find('.feat-item l').css('border-top-color',block_bg); else jQuery(this).find('.feat-item l').css('border-bottom-color',block_bg); timeline_icon_setting(jQuery(this)); }) jQuery('.aio-icon, .aio-icon-img, .flip-box, .ultb3-info, .icon_list_icon, .ult-banner-block, .uavc-list-icon, .ult_tabs, .icon_list_connector').each(function(){ if(jQuery(this).attr('data-animation')){ var animationName=jQuery(this).attr('data-animation'), animationDelay="delay-"+jQuery(this).attr('data-animation-delay'); if(typeof animationName==='undefined'||animationName==='') return false; $(this).bsf_appear(function(){ var $this=jQuery(this); $this.addClass('animated').addClass(animationName); $this.addClass('animated').addClass(animationDelay); }); }}); jQuery('.stats-block').each(function(){ $(this).bsf_appear(function(){ var endNum=parseFloat(jQuery(this).find('.stats-number').data('counter-value')); var Num=(jQuery(this).find('.stats-number').data('counter-value'))+' '; var speed=parseInt(jQuery(this).find('.stats-number').data('speed')); var ID=jQuery(this).find('.stats-number').data('id'); var sep=jQuery(this).find('.stats-number').data('separator'); var dec=jQuery(this).find('.stats-number').data('decimal'); var dec_count=Num.split("."); if(dec_count[1]){ dec_count=dec_count[1].length-1; }else{ dec_count=0; } var grouping=true; if(dec=="none"){ dec=""; } if(sep=="none"){ grouping=false; }else{ grouping=true; } var settings={ useEasing:true, useGrouping:grouping, separator:sep, decimal:dec } var counter=new countUp(ID, 0, endNum, dec_count, speed, settings); setTimeout(function(){ counter.start(); },500); }); }); if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) var is_touch_device=false; else var is_touch_device=true; jQuery('#page').click(function(){ jQuery('.ifb-hover').removeClass('ifb-hover'); }); if(!is_touch_device){ jQuery('.ifb-flip-box').hover(function(event){ event.stopPropagation(); jQuery(this).addClass('ifb-hover'); },function(event){ event.stopPropagation(); jQuery(this).removeClass('ifb-hover'); }); } jQuery('.ifb-flip-box').each(function(index, element){ if(jQuery(this).parent().hasClass('style_9')){ jQuery(this).hover(function(){ jQuery(this).addClass('ifb-door-hover'); }, function(){ jQuery(this).removeClass('ifb-door-hover'); }) jQuery(this).on('click',function(){ jQuery(this).toggleClass('ifb-door-right-open'); jQuery(this).removeClass('ifb-door-hover'); }); }}); jQuery('.ifb-flip-box').click(function(event){ event.stopPropagation(); jQuery(document).trigger('ultFlipBoxClicked', jQuery(this)); if(jQuery(this).hasClass('ifb-hover')){ jQuery(this).removeClass('ifb-hover'); }else{ jQuery('.ifb-hover').removeClass('ifb-hover'); jQuery(this).addClass('ifb-hover'); }}); jQuery('.vertical_door_flip .ifb-front').each(function(){ jQuery(this).wrap('
    '); jQuery(this).parent().clone().removeClass('ifb-front-1').addClass('ifb-front-2').insertAfter(jQuery(this).parent()); }); jQuery('.reverse_vertical_door_flip .ifb-back').each(function(){ jQuery(this).wrap('
    '); jQuery(this).parent().clone().removeClass('ifb-back-1').addClass('ifb-back-2').insertAfter(jQuery(this).parent()); }); jQuery('.horizontal_door_flip .ifb-front').each(function(){ jQuery(this).wrap('
    '); jQuery(this).parent().clone().removeClass('ifb-front-1').addClass('ifb-front-2').insertAfter(jQuery(this).parent()); }); jQuery('.reverse_horizontal_door_flip .ifb-back').each(function(){ jQuery(this).wrap('
    '); jQuery(this).parent().clone().removeClass('ifb-back-1').addClass('ifb-back-2').insertAfter(jQuery(this).parent()); }); jQuery('.style_9 .ifb-front').each(function(){ jQuery(this).wrap('
    '); jQuery(this).parent().clone().removeClass('ifb-front-1').addClass('ifb-front-2').insertAfter(jQuery(this).parent()); }); jQuery('.style_9 .ifb-back').each(function(){ jQuery(this).wrap('
    '); jQuery(this).parent().clone().removeClass('ifb-back-1').addClass('ifb-back-2').insertAfter(jQuery(this).parent()); }); var is_safari=/^((?!chrome).)*safari/i.test(navigator.userAgent); if(is_safari){ jQuery('.vertical_door_flip').each(function(index, element){ var safari_link=jQuery(this).find('.flip_link').outerHeight(); jQuery(this).find('.flip_link').css('top', - safari_link/2 +'px'); jQuery(this).find('.ifb-multiple-front').css('width', '50.2%'); }); jQuery('.horizontal_door_flip').each(function(index, element){ var safari_link=jQuery(this).find('.flip_link').outerHeight(); jQuery(this).find('.flip_link').css('top', - safari_link/2 +'px'); jQuery(this).find('.ifb-multiple-front').css('height','50.2%'); }); jQuery('.reverse_vertical_door_flip').each(function(index, element){ var safari_link=jQuery(this).find('.flip_link').outerHeight(); jQuery(this).find('.flip_link').css('top', - safari_link/2 +'px'); }); jQuery('.reverse_horizontal_door_flip').each(function(index, element){ var safari_link=jQuery(this).find('.flip_link').outerHeight(); jQuery(this).find('.flip_link').css('top', - safari_link/2 +'px'); jQuery(this).find('.ifb-back').css('position', 'inherit'); }); } jQuery('.square_box-icon').each(function(index, element){ var $box=jQuery(this); if(jQuery(this).find('.aio-icon-img').length > 0){ var $icon=jQuery(this).find('.aio-icon-img'); info_box_adjust_icon($box, $icon, 'img'); $icon.find('.img-icon').load(function(){ info_box_adjust_icon($box, $icon, 'icon'); }); }else{ var $icon=jQuery(this).find('.aio-icon'); info_box_adjust_icon($box, $icon, 'icon'); jQuery(window).load(function(){ info_box_adjust_icon($box, $icon, 'icon'); }); }}); }); function info_box_adjust_icon($box, $icon, icon_type){ if(icon_type==='img'){ var ib_box_style_icon_height=parseInt($icon.outerHeight()); var ib_padding=ib_box_style_icon_height/2; $box.css('padding-top', ib_padding+'px'); $box.parent().css('margin-top', ib_padding+20+'px'); $icon.css('top', - ib_box_style_icon_height+'px'); }else{ var ib_box_style_icon_height=parseInt($icon.outerHeight()); var ib_padding=ib_box_style_icon_height/2; $box.css('padding-top', ib_padding+'px'); $box.parent().css('margin-top', ib_padding+20+'px'); $icon.css('top', - ib_box_style_icon_height+'px'); }} function timeline_icon_setting(ele){ if(ele.find('.timeline-icon-block').length > 0){ $('.timeline-block').each(function(index, element){ var $hbblock=$(this).find('.timeline-header-block'); var $icon=$(this).find('.timeline-icon-block'); $icon.css({'position':'absolute'}); var icon_height=$icon.outerHeight(); var icon_width=$icon.outerWidth(); var diff_pos=-(icon_width/2); var padding_fixer=parseInt($hbblock.find('.timeline-header').css('padding-left').replace(/[^\d.]/g, '')); if($(this).hasClass('timeline-post-left')){ $icon.css({'left':diff_pos,'right':'auto'}); $hbblock.css({'padding-left':((icon_width/2)+padding_fixer)+'px'}); } else if($(this).hasClass('timeline-post-right')){ $icon.css({'left':'auto','right':diff_pos}); $hbblock.css({'padding-right':((icon_width/2)+padding_fixer)+'px'}); } var blheight=$hbblock.height(); var blmidheight=blheight/2; var icon_mid_height=icon_height/2; var diff=blmidheight - icon_mid_height; $icon.css({'top':diff}); var tleft=$icon.offset().left; var winw=$(window).width(); if(0 > tleft||winw < (tleft+icon_width)){ $icon.css({'position':'relative','top':'auto','left':'auto','right':'auto','text-align':'center'}); $icon.children().children().css({'margin':'10px auto'}); $hbblock.css({'padding':'0'}); }}); }} function animate_block(){ jQuery('.ult-animation').each(function(){ if(jQuery(this).attr('data-animate')){ var child2=jQuery(this).children('*'); var animationName=jQuery(this).attr('data-animate'), animationDuration=jQuery(this).attr('data-animation-duration')+'s', animationIteration=jQuery(this).attr('data-animation-iteration'), animationDelay=jQuery(this).attr('data-animation-delay'), animationViewport=jQuery(this).attr('data-opacity_start_effect'); var style='opacity:1;-webkit-animation-delay:'+animationDelay+'s;-webkit-animation-duration:'+animationDuration+';-webkit-animation-iteration-count:'+animationIteration+'; -moz-animation-delay:'+animationDelay+'s;-moz-animation-duration:'+animationDuration+';-moz-animation-iteration-count:'+animationIteration+'; animation-delay:'+animationDelay+'s;animation-duration:'+animationDuration+';animation-iteration-count:'+animationIteration+';'; var container_style='opacity:1;-webkit-transition-delay: '+(animationDelay)+'s; -moz-transition-delay: '+(animationDelay)+'s; transition-delay: '+(animationDelay)+'s;'; if(isAppear(jQuery(this))){ var p_st=jQuery(this).attr('style'); if(typeof(p_st)=='undefined'){ p_st='test'; } p_st=p_st.replace(/ /g,''); if(p_st=='opacity:0;'){ if(p_st.indexOf(container_style)!==0){ jQuery(this).attr('style',container_style); }} jQuery.each(child2,function(index,value){ var $this=jQuery(value); var prev_style=$this.attr('style'); if(typeof(prev_style)=='undefined'){ prev_style='test'; } var new_style=''; if(prev_style.indexOf(style)==0){ new_style=prev_style; }else{ new_style=style+prev_style; } $this.attr('style',new_style); if(isAppear($this)){ $this.addClass('animated').addClass(animationName); }}); }} }); } function isAppear(id){ var window_scroll=jQuery(window).scrollTop(); var window_height=jQuery(window).height(); if(jQuery(id).hasClass('ult-animate-viewport')) var start_effect=jQuery(id).data('opacity_start_effect'); if(typeof(start_effect)==='undefined'||start_effect=='') var percentage=2; else var percentage=100 - start_effect; var element_height=jQuery(id).outerHeight(); var element_top=jQuery(id).offset().top; var position=element_top - window_scroll; var cut=window_height - (window_height * (percentage/100)); if(position <=cut) return true; else return false; }; function ib_responsive(){ var new_ib=jQuery(".ult-new-ib"); new_ib.each(function(index, element){ var $this=jQuery(this); if($this.hasClass("ult-ib-resp")){ var w=jQuery(document).width(); var ib_min=$this.data("min-width"); var ib_max=$this.data("max-width"); if(w <=ib_max&&w >=ib_min){ $this.find(".ult-new-ib-content").hide(); }else{ $this.find(".ult-new-ib-content").show(); }} }); } function init_ultimate_spacer(){ var css=''; $('.ult-spacer').each(function(i,spacer){ var uid=$(spacer).data('id'); var body_width=$("body").width(); var height_on_mob=$(spacer).data('height-mobile'); var height_on_mob_landscape=$(spacer).data('height-mobile-landscape'); var height_on_tabs=$(spacer).data('height-tab'); var height_on_tabs_portrait=$(spacer).data('height-tab-portrait'); var height=$(spacer).data('height'); if(height!=''){ css +=' .spacer-'+uid+' { height:'+height+'px } '; } if(height_on_tabs!=''||height_on_tabs=='0'||height_on_tabs==0){ css +=' @media (max-width: 1199px){ .spacer-'+uid+' { height:'+height_on_tabs+'px }} '; } if(typeof height_on_tabs_portrait!='undefined'&&(height_on_tabs_portrait!=''||height_on_tabs_portrait=='0'||height_on_tabs_portrait==0)){ css +=' @media (max-width: 991px){ .spacer-'+uid+' { height:'+height_on_tabs_portrait+'px }} '; } if(typeof height_on_mob_landscape!='undefined'&&(height_on_mob_landscape!=''||height_on_mob_landscape=='0'||height_on_mob_landscape==0)){ css +=' @media (max-width: 767px){ .spacer-'+uid+' { height:'+height_on_mob_landscape+'px }} '; } if(height_on_mob!=''||height_on_mob=='0'||height_on_mob==0){ css +=' @media (max-width: 479px){ .spacer-'+uid+' { height:'+height_on_mob+'px }} '; }}); if(css!=''){ css=''; $('head').append(css); }} })(jQuery); jQuery(document).ready(function(){ interactive_banner2(); jQuery(window).load(function(){ interactive_banner2(); }); jQuery(window).resize(function(){ interactive_banner2(); }); function interactive_banner2(){ jQuery(".ult-new-ib").each(function(index, element){ var banner_min_height=jQuery(this).data('min-height')||''; var img_min_height=jQuery(this).find(".ult-new-ib-img").data('min-height')||''; var img_max_height=jQuery(this).find(".ult-new-ib-img").data('max-width')||''; if(banner_min_height!=''){ jQuery(this).addClass('ult-ib2-min-height'); jQuery(this).css('height', banner_min_height); jQuery(this).find(".ult-new-ib-img").removeClass('ult-ib2-toggle-size'); var img_width=jQuery(this).find(".ult-new-ib-img").width(); var img_height=jQuery(this).find(".ult-new-ib-img").height(); var b_width=jQuery(this).width(); if(b_width <=banner_min_height||img_height < banner_min_height) jQuery(this).find(".ult-new-ib-img").addClass('ult-ib2-toggle-size'); } jQuery(this).hover(function(){ jQuery(this).find(".ult-new-ib-img").css("opacity", jQuery(this).data('hover-opacity')); }, function(){ jQuery(this).find(".ult-new-ib-img").css("opacity", jQuery(this).data('opacity')); } ); }); }}); jQuery(document).ready(function(){ function resize_uvc_map(){ jQuery('.ultimate-map-wrapper').each(function(i,wrapelement){ var wrap=jQuery(wrapelement).attr('id'); if(typeof wrap==='undefined'||wrap==='') return false; var map=jQuery(wrapelement).find('.ultimate_google_map').attr('id'); var map_override=jQuery('#'+map).attr('data-map_override'); var is_relative='true'; jQuery('#'+map).css({'margin-left':0 }); var ancenstor=jQuery('#'+wrap).parent(); var parent=ancenstor; if(map_override=='full'){ ancenstor=jQuery('body'); is_relative='false'; } if(map_override=='ex-full'){ ancenstor=jQuery('html'); is_relative='false'; } if(! isNaN(map_override)){ for(var i=0;i 0){ resize_uvc_map(); }}); jQuery('.ui-accordion').bind('accordionactivate', function(event, ui){ if(jQuery(this).find('.ultimate-map-wrapper').length > 0){ resize_uvc_map(); }}); jQuery(document).on('onUVCModalPopupOpen', function(){ resize_uvc_map(); }); jQuery(document).on('UVCMapResize',function(){ resize_uvc_map(); }); });